diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/effect/HungerMobEffect.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/effect/HungerMobEffect.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/effect/HungerMobEffect.patch b/patch-remap/og/net/minecraft/world/effect/HungerMobEffect.patch new file mode 100644 index 0000000000..65962d9d09 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/effect/HungerMobEffect.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/effect/HungerMobEffect.java ++++ b/net/minecraft/world/effect/HungerMobEffect.java +@@ -15,7 +15,7 @@ + if (entityliving instanceof EntityHuman) { + EntityHuman entityhuman = (EntityHuman) entityliving; + +- entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1)); ++ entityhuman.causeFoodExhaustion(0.005F * (float) (i + 1), org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.HUNGER_EFFECT); // CraftBukkit - EntityExhaustionEvent + } + + } |