mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
11 lines
573 B
Diff
11 lines
573 B
Diff
--- a/net/minecraft/world/effect/HungerMobEffect.java
|
|
+++ b/net/minecraft/world/effect/HungerMobEffect.java
|
|
@@ -12,7 +12,7 @@
|
|
@Override
|
|
public boolean applyEffectTick(EntityLiving entityliving, int i) {
|
|
if (entityliving instanceof EntityHuman entityhuman) {
|
|
- entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1));
|
|
+ entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent
|
|
}
|
|
|
|
return true;
|