13
0
geforkt von Mirrors/Paper

Zero is not less than zero. Fixes BUKKIT-3259

By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2012-12-21 21:48:09 -06:00
Ursprung f23414917d
Commit e8a36e2744

Datei anzeigen

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