diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-01 22:47:33 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-01 22:47:33 -0500 |
commit | bcf979b2a6c35a4cef91b7966d87a350b23e300e (patch) | |
tree | bb91c9354646fa79c757c91fc5c099f6811331ac /src | |
parent | 2510af0d1aa6f2e7b0404d3b6dcd2bb4ffdbe1e8 (diff) | |
download | craftbukkit-bcf979b2a6c35a4cef91b7966d87a350b23e300e.tar craftbukkit-bcf979b2a6c35a4cef91b7966d87a350b23e300e.tar.gz craftbukkit-bcf979b2a6c35a4cef91b7966d87a350b23e300e.tar.lz craftbukkit-bcf979b2a6c35a4cef91b7966d87a350b23e300e.tar.xz craftbukkit-bcf979b2a6c35a4cef91b7966d87a350b23e300e.zip |
Fixed hunger not behaving correctly. Addresses BUKKIT-907
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/FoodMetaData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/FoodMetaData.java b/src/main/java/net/minecraft/server/FoodMetaData.java index a659813a..2b6b5845 100644 --- a/src/main/java/net/minecraft/server/FoodMetaData.java +++ b/src/main/java/net/minecraft/server/FoodMetaData.java @@ -33,7 +33,7 @@ public class FoodMetaData { this.saturationLevel = Math.max(this.saturationLevel - 1.0F, 0.0F); } else if (i > 0) { // CraftBukkit start - org.bukkit.event.entity.FoodLevelChangeEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callFoodLevelChangeEvent(entityhuman, Math.min(this.foodLevel - 1, 0)); + org.bukkit.event.entity.FoodLevelChangeEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callFoodLevelChangeEvent(entityhuman, Math.max(this.foodLevel - 1, 0)); if (!event.isCancelled()) { this.foodLevel = event.getFoodLevel(); |