From 92cbb2fc237c554b15560292e99c358423e43697 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 23 Feb 2011 16:08:28 +0000 Subject: Fixed CraftItem NPEs --- src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/org/bukkit') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java index bafb1fe8..86bcce0e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java @@ -11,6 +11,7 @@ public class CraftItem extends CraftEntity implements Item { public CraftItem(CraftServer server, EntityItem entity) { super(server, entity); + this.item = entity; } public ItemStack getItemStack() { -- cgit v1.2.3