From e1586e017aa8082a9fe404825c012ace889ff026 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Mon, 12 Dec 2011 21:49:35 +0000 Subject: [PATCH] ... Fixed dispensers again! --- src/main/java/net/minecraft/server/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java index 79e431af69..fe59b98896 100644 --- a/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java @@ -43,7 +43,7 @@ public final class ItemStack { public ItemStack(int id, int count, int data, NBTTagList enchantments) { this(id, count, data); // taken from .addEnchantment - if (Item.byId[this.id].getMaxStackSize() == 1) { + if (enchantments != null && Item.byId[this.id].getMaxStackSize() == 1) { if (this.tag == null) { this.setTag(new NBTTagCompound()); }