update fabric json and change config code

This commit is contained in:
Liz Graham
2022-03-20 16:56:58 +00:00
parent 044e78b6fd
commit d5f549c417
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -28,7 +28,7 @@
"depends": {
"fabricloader": ">=0.12.11",
"fabric": "*",
"minecraft": "1.18.x",
"minecraft": "<=1.18.1",
"java": ">=17"
},
"suggests": {