craftbukkit/nms-patches/net/minecraft/world/effect/HungerMobEffect.patch

12 lines
598 B
Diff
Raw Normal View History

2023-09-22 02:40:00 +10:00
--- a/net/minecraft/world/effect/HungerMobEffect.java
+++ b/net/minecraft/world/effect/HungerMobEffect.java
2024-10-23 02:15:00 +11:00
@@ -13,7 +13,7 @@
2024-04-24 01:15:00 +10:00
@Override
2024-10-23 02:15:00 +11:00
public boolean applyEffectTick(WorldServer worldserver, EntityLiving entityliving, int i) {
2024-04-24 01:15:00 +10:00
if (entityliving instanceof EntityHuman entityhuman) {
2023-09-22 02:40:00 +10: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-24 01:15:00 +10:00
return true;