mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-18 06:57:49 +01:00
Zero is not less than zero. Fixes BUKKIT-3259
This commit is contained in:
parent
a0cf0d03f4
commit
78d384de93
@ -385,7 +385,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setPower(int power) {
|
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);
|
Validate.isTrue(power < 0x80, "Power cannot be more than 127: ", power);
|
||||||
this.power = power;
|
this.power = power;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user