mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
30e4583dbe
By: Initial Source <noreply+automated@papermc.io>
11 lines
599 B
Diff
11 lines
599 B
Diff
--- a/net/minecraft/world/effect/HungerMobEffect.java
|
|
+++ b/net/minecraft/world/effect/HungerMobEffect.java
|
|
@@ -13,7 +13,7 @@
|
|
@Override
|
|
public boolean applyEffectTick(ServerLevel world, LivingEntity entity, int amplifier) {
|
|
if (entity instanceof Player entityhuman) {
|
|
- entityhuman.causeFoodExhaustion(0.005F * (float) (amplifier + 1));
|
|
+ entityhuman.causeFoodExhaustion(0.005F * (float) (amplifier + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent
|
|
}
|
|
|
|
return true;
|