From 374833fba585e0189fabb2b60b096d8875e9d7e8 Mon Sep 17 00:00:00 2001 From: Liz Graham Date: Sat, 26 Mar 2022 01:22:05 +0000 Subject: [PATCH] reupdate to 1.18.2 because I fucked up --- gradle.properties | 6 +++--- .../net/lizistired/cavedust/utils/ParticleSpawnUtil.java | 5 +++-- src/main/resources/fabric.mod.json | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index ab0e173..8f3b1b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,8 +3,8 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.18.1 - yarn_mappings=1.18.1+build.22 + minecraft_version=1.18.2 + yarn_mappings=1.18.2+build.1 loader_version=0.12.11 # Mod Properties @@ -13,7 +13,7 @@ org.gradle.jvmargs=-Xmx1G archives_base_name = cave_dust # Dependencies - fabric_version=0.46.4+1.18 + fabric_version=0.47.8+1.18.2 clothconfig_version = 6.1.48 modmenu_version = 3.0.1 minelp_version=4.4.0-beta.2 diff --git a/src/main/java/net/lizistired/cavedust/utils/ParticleSpawnUtil.java b/src/main/java/net/lizistired/cavedust/utils/ParticleSpawnUtil.java index 5e6f529..3793179 100644 --- a/src/main/java/net/lizistired/cavedust/utils/ParticleSpawnUtil.java +++ b/src/main/java/net/lizistired/cavedust/utils/ParticleSpawnUtil.java @@ -29,7 +29,7 @@ public class ParticleSpawnUtil { || client.world == null || !client.world.getDimension().isBedWorking() || Objects.requireNonNull(client.player).isSubmergedInWater() - || Objects.equals(client.world.getBiomeKey(Objects.requireNonNull(client.player.getBlockPos())), Optional.of(LUSH_CAVES))) + || client.world.getBiome(Objects.requireNonNull(client.player.getBlockPos())).matchesKey(LUSH_CAVES)) { timer = 0; shouldParticlesSpawn = false; @@ -68,7 +68,8 @@ public class ParticleSpawnUtil { || client.world == null || !client.world.getDimension().isBedWorking() || Objects.requireNonNull(client.player).isSubmergedInWater() - || Objects.equals(client.world.getBiomeKey(Objects.requireNonNull(pos)), Optional.of(LUSH_CAVES))) + || client.world.getBiome(Objects.requireNonNull(pos)).matchesKey(LUSH_CAVES)) + { timer = 0; shouldParticlesSpawn = false; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 605db35..516626b 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -11,7 +11,7 @@ "issues": "https://github.com/LizIsTired/dust/issues", "sources": "https://github.com/LizIsTired/dust" }, - "license": "CC0-1.0", + "license": "MPL-2.0", "icon": "assets/modid/icon.png", "environment": "*", "entrypoints": { @@ -28,7 +28,7 @@ "depends": { "fabricloader": ">=0.12.11", "fabric": "*", - "minecraft": "<=1.18.1", + "minecraft": "1.18.2", "java": ">=17" }, "suggests": {