Fix specters spawning with /give (#885)
This commit is contained in:
parent
5989f37f59
commit
137975331c
|
@ -99,7 +99,7 @@ public class GenericHandler
|
||||||
{
|
{
|
||||||
ItemStack stack = itemEntity.getEntityItem();
|
ItemStack stack = itemEntity.getEntityItem();
|
||||||
Item item = stack.getItem();
|
Item item = stack.getItem();
|
||||||
if (item instanceof ISentientTool)
|
if (stack.hasTagCompound() && item instanceof ISentientTool)
|
||||||
{
|
{
|
||||||
if (((ISentientTool) item).spawnSentientEntityOnDrop(stack, event.getPlayer()))
|
if (((ISentientTool) item).spawnSentientEntityOnDrop(stack, event.getPlayer()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue