2024-12-11 22:26:55 +01:00
|
|
|
--- a/net/minecraft/world/effect/RegenerationMobEffect.java
|
|
|
|
+++ b/net/minecraft/world/effect/RegenerationMobEffect.java
|
2024-12-14 22:12:42 +01:00
|
|
|
@@ -11,7 +_,7 @@
|
2024-12-11 22:26:55 +01:00
|
|
|
@Override
|
2024-12-14 22:12:42 +01:00
|
|
|
public boolean applyEffectTick(ServerLevel level, LivingEntity entity, int amplifier) {
|
2024-12-11 22:26:55 +01:00
|
|
|
if (entity.getHealth() < entity.getMaxHealth()) {
|
|
|
|
- entity.heal(1.0F);
|
|
|
|
+ entity.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|