From 6f4a37079817caf129e489b95864f3d8aeaa44ab Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot 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 By: Celtic Minstrel --- .../java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index a363402b42..c26cc41242 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/paper-server/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) {