Zero is not less than zero. Fixes BUKKIT-3259

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
CraftBukkit/Spigot 2012-12-21 21:48:09 -06:00
parent f23414917d
commit e8a36e2744

View File

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