geforkt von Mirrors/Paper
Zero is not less than zero. Fixes BUKKIT-3259
By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
f23414917d
Commit
e8a36e2744
@ -385,7 +385,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
||||
}
|
||||
|
||||
public void setPower(int power) {
|
||||
Validate.isTrue(power > 0, "Power cannot be less than zero: ", power);
|
||||
Validate.isTrue(power >= 0, "Power cannot be less than zero: ", power);
|
||||
Validate.isTrue(power < 0x80, "Power cannot be more than 127: ", power);
|
||||
this.power = power;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren