diff options
author | Celtic Minstrel <celtic.minstrel.ca@some.place> | 2012-03-12 16:59:12 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-15 22:16:35 -0400 |
commit | e10a43a4108334eb869533bc551bccf3ac84c43c (patch) | |
tree | 3dcf5bbae765332501daefe75b39126395c748dd | |
parent | 8b67cad4cc13f2cc547ae4572bd9205adb337d8a (diff) | |
download | bukkit-e10a43a4108334eb869533bc551bccf3ac84c43c.tar bukkit-e10a43a4108334eb869533bc551bccf3ac84c43c.tar.gz bukkit-e10a43a4108334eb869533bc551bccf3ac84c43c.tar.lz bukkit-e10a43a4108334eb869533bc551bccf3ac84c43c.tar.xz bukkit-e10a43a4108334eb869533bc551bccf3ac84c43c.zip |
[Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index 41db2218..165eca69 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java @@ -20,11 +20,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable { private Map<Enchantment, Integer> enchantments = new HashMap<Enchantment, Integer>(); public ItemStack(final int type) { - this(type, 0); + this(type, 1); } public ItemStack(final Material type) { - this(type, 0); + this(type, 1); } public ItemStack(final int type, final int amount) { |