geforkt von Mirrors/Paper
SPIGOT-3938: Don't cap saturation level in FoodLevelChangeEvent
By: Glitchfinder <glitchkey@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
9b59adbfbc
Commit
f63661d5f6
@ -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;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren