summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2012-12-21 21:48:09 -0600
committerWesley Wolfe <weswolf@aol.com>2012-12-21 21:48:09 -0600
commit78d384de93859e3c6200b9e4d1d027a8729ffc99 (patch)
tree864b2b105ccbbfde46e8ddffec1047bba07852a9 /src/main/java/org
parenta0cf0d03f44caf7de60367f40409be347734df17 (diff)
downloadcraftbukkit-78d384de93859e3c6200b9e4d1d027a8729ffc99.tar
craftbukkit-78d384de93859e3c6200b9e4d1d027a8729ffc99.tar.gz
craftbukkit-78d384de93859e3c6200b9e4d1d027a8729ffc99.tar.lz
craftbukkit-78d384de93859e3c6200b9e4d1d027a8729ffc99.tar.xz
craftbukkit-78d384de93859e3c6200b9e4d1d027a8729ffc99.zip
Zero is not less than zero. Fixes BUKKIT-3259
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
index 67cc8b1c..0ac73e1e 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;
}