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