13
0
geforkt von Mirrors/Paper

SPIGOT-3938: Don't cap saturation level in FoodLevelChangeEvent

By: Glitchfinder <glitchkey@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2018-05-15 16:02:45 -07:00
Ursprung 9b59adbfbc
Commit f63661d5f6

Datei anzeigen

@ -42,8 +42,7 @@ public class FoodLevelChangeEvent extends EntityEvent implements Cancellable {
* event should be set to * event should be set to
*/ */
public void setFoodLevel(int level) { public void setFoodLevel(int level) {
if (level > 20) level = 20; if (level < 0) level = 0;
else if (level < 0) level = 0;
this.level = level; this.level = level;
} }