Patch crash from spamming Z with creeper slimeskull
Port forwards of
@@ -44,7 +44,7 @@ public class SelfDestructiveModifier extends SingleUseModifier implements IArmor
player.playSound(SoundEvents.CREEPER_PRIMED, 1.0F, 0.5F);
// make the player slow
AttributeInstance instance = player.getAttributes().getInstance(Attributes.MOVEMENT_SPEED);
- if (instance != null) {
+ if (instance != null && !instance.hasModifier(SPEED_MODIFIER)) {
instance.addTransientModifier(SPEED_MODIFIER);
}
return true;
