2023-09-21 18:40:00 +02:00
|
|
|
--- a/net/minecraft/world/effect/HungerMobEffect.java
|
|
|
|
+++ b/net/minecraft/world/effect/HungerMobEffect.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -12,7 +12,7 @@
|
|
|
|
@Override
|
|
|
|
public boolean applyEffectTick(EntityLiving entityliving, int i) {
|
|
|
|
if (entityliving instanceof EntityHuman entityhuman) {
|
2023-09-21 18:40:00 +02:00
|
|
|
- entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1));
|
|
|
|
+ entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent
|
|
|
|
}
|
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
return true;
|