From 59b49b81dd4dd7c29debd3bb46961001531ea5ca Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Tue, 15 May 2018 16:02:45 -0700 Subject: SPIGOT-3938: Don't cap saturation level in FoodLevelChangeEvent --- src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3