From d5f549c417af336a5b458b05e61b6135991d2bd5 Mon Sep 17 00:00:00 2001 From: Liz Graham Date: Sun, 20 Mar 2022 16:56:58 +0000 Subject: [PATCH] update fabric json and change config code --- src/main/java/net/lizistired/cavedust/CaveDustConfig.java | 2 +- src/main/resources/fabric.mod.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/lizistired/cavedust/CaveDustConfig.java b/src/main/java/net/lizistired/cavedust/CaveDustConfig.java index 8380e0b..ceea361 100644 --- a/src/main/java/net/lizistired/cavedust/CaveDustConfig.java +++ b/src/main/java/net/lizistired/cavedust/CaveDustConfig.java @@ -164,7 +164,7 @@ public class CaveDustConfig extends JsonFile { public ParticleEffect getParticle(){ try { - return (ParticleEffect) Registry.PARTICLE_TYPE.get(Identifier.tryParse(particleName.toLowerCase())); + return (ParticleEffect) Registry.PARTICLE_TYPE.get(new Identifier(particleName.toLowerCase())); } catch (ClassCastException e) { LOGGER.error(e + "\nThere was an error loading the specified particle from the config, make sure a valid particle name is specified. Falling back to \"minecraft:white_ash\"."); particleName = "minecraft:white_ash"; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 3ed2f8c..ce85629 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -28,7 +28,7 @@ "depends": { "fabricloader": ">=0.12.11", "fabric": "*", - "minecraft": "1.18.x", + "minecraft": "<=1.18.1", "java": ">=17" }, "suggests": {