From 0635b1f49618f77ccda15bcfd18df19549571ff4 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot <noreply+git-bukkit@papermc.io> Date: Mon, 12 Mar 2012 16:59:12 -0400 Subject: [PATCH] [Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610 By: Celtic Minstrel <celtic.minstrel.ca@some.place> --- paper-api/src/main/java/org/bukkit/inventory/ItemStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java index 41db22186b..165eca6915 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/paper-api/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) {