Zero is not less than zero. Fixes BUKKIT-3259

This commit is contained in:
Wesley Wolfe 2012-12-21 21:48:09 -06:00
parent a0cf0d03f4
commit 78d384de93

View File

@ -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;
}