mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
11 lines
492 B
Diff
11 lines
492 B
Diff
--- a/net/minecraft/world/effect/RegenerationMobEffect.java
|
|
+++ b/net/minecraft/world/effect/RegenerationMobEffect.java
|
|
@@ -11,7 +_,7 @@
|
|
@Override
|
|
public boolean applyEffectTick(ServerLevel level, LivingEntity entity, int amplifier) {
|
|
if (entity.getHealth() < entity.getMaxHealth()) {
|
|
- entity.heal(1.0F);
|
|
+ entity.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit
|
|
}
|
|
|
|
return true;
|