diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/ElderGuardianAppearanceParticleMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ElderGuardianAppearanceParticleMixin.java new file mode 100644 index 0000000..2821723 --- /dev/null +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ElderGuardianAppearanceParticleMixin.java @@ -0,0 +1,18 @@ +package land.chipmunk.chipmunkmod.mixin; + +import net.minecraft.client.particle.ElderGuardianAppearanceParticle; +import net.minecraft.client.particle.Particle; +import net.minecraft.client.world.ClientWorld; +import net.minecraft.particle.DefaultParticleType; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +@Mixin(ElderGuardianAppearanceParticle.Factory.class) +public class ElderGuardianAppearanceParticleMixin { + @Inject(method = "createParticle(Lnet/minecraft/particle/DefaultParticleType;Lnet/minecraft/client/world/ClientWorld;DDDDDD)Lnet/minecraft/client/particle/Particle;", at = @At("HEAD")) + private void createParticle (DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i, CallbackInfoReturnable cir) { + cir.cancel(); + } +} diff --git a/src/main/resources/chipmunkmod.mixins.json b/src/main/resources/chipmunkmod.mixins.json index b1d9708..a3de837 100644 --- a/src/main/resources/chipmunkmod.mixins.json +++ b/src/main/resources/chipmunkmod.mixins.json @@ -16,7 +16,8 @@ "DecoderHandlerMixin", "StringHelperMixin", "NbtIoMixin", - "KeyboardInputMixin" + "KeyboardInputMixin", + "ElderGuardianAppearanceParticleMixin" ], "injectors": { "defaultRequire": 1