From 78d384de93859e3c6200b9e4d1d027a8729ffc99 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Fri, 21 Dec 2012 21:48:09 -0600 Subject: [PATCH] Zero is not less than zero. Fixes BUKKIT-3259 --- .../org/bukkit/craftbukkit/inventory/CraftMetaFirework.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java index 67cc8b1cc8..0ac73e1e32 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java @@ -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; }