diff options
Diffstat (limited to 'patch-remap/mache-spigotflower/net/minecraft/world/effect/RegenerationMobEffect.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower/net/minecraft/world/effect/RegenerationMobEffect.java.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower/net/minecraft/world/effect/RegenerationMobEffect.java.patch b/patch-remap/mache-spigotflower/net/minecraft/world/effect/RegenerationMobEffect.java.patch new file mode 100644 index 0000000000..d907f473e0 --- /dev/null +++ b/patch-remap/mache-spigotflower/net/minecraft/world/effect/RegenerationMobEffect.java.patch @@ -0,0 +1,31 @@ +--- a/net/minecraft/world/effect/RegenerationMobEffect.java ++++ b/net/minecraft/world/effect/RegenerationMobEffect.java +@@ -4,22 +4,20 @@ + + class RegenerationMobEffect extends MobEffect { + +- protected RegenerationMobEffect(MobEffectCategory mobeffectcategory, int i) { +- super(mobeffectcategory, i); ++ protected RegenerationMobEffect(MobEffectCategory category, int color) { ++ super(category, color); + } + + @Override +- @Override +- public void applyEffectTick(LivingEntity livingentity, int i) { +- super.applyEffectTick(livingentity, i); +- if (livingentity.getHealth() < livingentity.getMaxHealth()) { +- livingentity.heal(1.0F); ++ public void applyEffectTick(LivingEntity livingEntity, int amplifier) { ++ super.applyEffectTick(livingEntity, amplifier); ++ if (livingEntity.getHealth() < livingEntity.getMaxHealth()) { ++ livingEntity.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit + } + + } + + @Override +- @Override + public boolean shouldApplyEffectTickThisTick(int i, int j) { + int k = 50 >> j; + |