mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Zero is not less than zero. Fixes BUKKIT-3259
This commit is contained in:
parent
a0cf0d03f4
commit
78d384de93
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue