Commits

Sean Porter authored and md_5 committed 59b49b81dd4
SPIGOT-3938: Don't cap saturation level in FoodLevelChangeEvent
No tags

src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java

Modified
35 35 }
36 36
37 37 /**
38 38 * Sets the resultant food level that the entity involved in this event
39 39 * should be set to
40 40 *
41 41 * @param level the resultant food level that the entity involved in this
42 42 * event should be set to
43 43 */
44 44 public void setFoodLevel(int level) {
45 - if (level > 20) level = 20;
46 - else if (level < 0) level = 0;
45 + if (level < 0) level = 0;
47 46
48 47 this.level = level;
49 48 }
50 49
51 50 public boolean isCancelled() {
52 51 return cancel;
53 52 }
54 53
55 54 public void setCancelled(boolean cancel) {
56 55 this.cancel = cancel;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut