mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
12 lines
512 B
Diff
12 lines
512 B
Diff
|
--- a/net/minecraft/world/effect/RegenerationMobEffect.java
|
||
|
+++ b/net/minecraft/world/effect/RegenerationMobEffect.java
|
||
|
@@ -12,7 +12,7 @@
|
||
|
public void applyEffectTick(EntityLiving entityliving, int i) {
|
||
|
super.applyEffectTick(entityliving, i);
|
||
|
if (entityliving.getHealth() < entityliving.getMaxHealth()) {
|
||
|
- entityliving.heal(1.0F);
|
||
|
+ entityliving.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit
|
||
|
}
|
||
|
|
||
|
}
|