Fix specters spawning with /give (#885)

This commit is contained in:
Nicholas Ignoffo 2016-09-06 18:38:52 -07:00
parent 5989f37f59
commit 137975331c

View file

@ -99,7 +99,7 @@ public class GenericHandler
{
ItemStack stack = itemEntity.getEntityItem();
Item item = stack.getItem();
if (item instanceof ISentientTool)
if (stack.hasTagCompound() && item instanceof ISentientTool)
{
if (((ISentientTool) item).spawnSentientEntityOnDrop(stack, event.getPlayer()))
{