Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Zero is not less than zero. Fixes BUKKIT-3259
Dieser Commit ist enthalten in:
Ursprung
a0cf0d03f4
Commit
78d384de93
@ -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