diff options
author | Glitchfinder <glitchkey@gmail.com> | 2018-05-15 16:02:45 -0700 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-05-19 13:26:13 +1000 |
commit | 59b49b81dd4dd7c29debd3bb46961001531ea5ca (patch) | |
tree | 5195593933cd6991ea54058d9d1fec137e62887b | |
parent | 222f7d167f7af6b4a96a320c0d69279c929ab17d (diff) | |
download | bukkit-59b49b81dd4dd7c29debd3bb46961001531ea5ca.tar bukkit-59b49b81dd4dd7c29debd3bb46961001531ea5ca.tar.gz bukkit-59b49b81dd4dd7c29debd3bb46961001531ea5ca.tar.lz bukkit-59b49b81dd4dd7c29debd3bb46961001531ea5ca.tar.xz bukkit-59b49b81dd4dd7c29debd3bb46961001531ea5ca.zip |
SPIGOT-3938: Don't cap saturation level in FoodLevelChangeEvent
-rw-r--r-- | src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java | 3 |
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; } |