Archiviert
13
0

Zero is not less than zero. Fixes BUKKIT-3259

Dieser Commit ist enthalten in:
Wesley Wolfe 2012-12-21 21:48:09 -06:00
Ursprung a0cf0d03f4
Commit 78d384de93

Datei anzeigen

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