aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch
new file mode 100644
index 0000000000..e521009cff
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/effect/RegenerationMobEffect.java.patch
@@ -0,0 +1,18 @@
+--- a/net/minecraft/world/effect/RegenerationMobEffect.java
++++ b/net/minecraft/world/effect/RegenerationMobEffect.java
+@@ -9,11 +9,10 @@
+ }
+
+ @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
+ }
+
+ }