diff --git a/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java b/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java index 108bc5e..2d13a5f 100644 --- a/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java +++ b/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java @@ -351,7 +351,7 @@ public void mobTick() { if (this.age % 20 == 0 && this.isTamed() && this.getOwner() != null && !this.getOwner().getEquippedStack(EquipmentSlot.HEAD).isEmpty() && this.getOwner().getEquippedStack(EquipmentSlot.HEAD).getItem() == Mischief.RAT_MASK) { this.getOwner().getActiveStatusEffects().forEach((statusEffect, statusEffectInstance) -> { - if (!this.hasStatusEffect(statusEffect) || (this.getStatusEffect(statusEffect) != null && this.getStatusEffect(statusEffect).getAmplifier() < statusEffectInstance.getAmplifier())) { + if (!this.hasStatusEffect(statusEffect) || (this.getStatusEffect(statusEffect) != null && this.getStatusEffect(statusEffect).getAmplifier() <= statusEffectInstance.getAmplifier())) { this.addStatusEffect(new StatusEffectInstance(statusEffect, 60, statusEffectInstance.getAmplifier())); } });