mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
11 lines
567 B
Diff
11 lines
567 B
Diff
--- a/net/minecraft/world/effect/HungerMobEffect.java
|
|
+++ b/net/minecraft/world/effect/HungerMobEffect.java
|
|
@@ -12,7 +_,7 @@
|
|
@Override
|
|
public boolean applyEffectTick(ServerLevel level, LivingEntity entity, int amplifier) {
|
|
if (entity instanceof Player player) {
|
|
- player.causeFoodExhaustion(0.005F * (amplifier + 1));
|
|
+ player.causeFoodExhaustion(0.005F * (amplifier + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent
|
|
}
|
|
|
|
return true;
|