summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java b/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
index f6e24725..1feb0e8f 100644
--- a/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
+++ b/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java
@@ -42,8 +42,7 @@ public class FoodLevelChangeEvent extends EntityEvent implements Cancellable {
* event should be set to
*/
public void setFoodLevel(int level) {
- if (level > 20) level = 20;
- else if (level < 0) level = 0;
+ if (level < 0) level = 0;
this.level = level;
}