Merge pull request #180 from Sir-Will/patch-1
Fixes null being stored to NBT for storeEntityData
This commit is contained in:
commit
a4712b3fb5
|
|
@ -71,6 +71,9 @@ public class ItemEntity extends Item
|
|||
NBTTagCompound entityData = new NBTTagCompound();
|
||||
entityData = entity.writeToNBT(entityData);
|
||||
|
||||
if (entityData == null)
|
||||
return false;
|
||||
|
||||
String name = EntityList.getKey(entity).toString();
|
||||
|
||||
NBTTagCompound tag = stack.hasTagCompound() ? stack.getTagCompound() : new NBTTagCompound();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user