2023-09-21 18:40:00 +02:00
|
|
|
--- a/net/minecraft/world/effect/RegenerationMobEffect.java
|
|
|
|
+++ b/net/minecraft/world/effect/RegenerationMobEffect.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -11,7 +11,7 @@
|
|
|
|
@Override
|
|
|
|
public boolean applyEffectTick(EntityLiving entityliving, int i) {
|
2023-09-21 18:40:00 +02:00
|
|
|
if (entityliving.getHealth() < entityliving.getMaxHealth()) {
|
|
|
|
- entityliving.heal(1.0F);
|
|
|
|
+ entityliving.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit
|
|
|
|
}
|
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
return true;
|