From 83265005f6c38256c762a55e62b21ce67fa278cc Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 12 Mar 2012 16:59:00 -0400 Subject: [PATCH] [Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610 --- .../java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index a363402b42..c26cc41242 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java @@ -30,11 +30,11 @@ public class CraftItemStack extends ItemStack { /* 'Overwritten' constructors from ItemStack, yay for Java sucking */ public CraftItemStack(final int type) { - this(type, 0); + this(type, 1); } public CraftItemStack(final Material type) { - this(type, 0); + this(type, 1); } public CraftItemStack(final int type, final int amount) {