Merge pull request #180 from Sir-Will/patch-1

Fixes null being stored to NBT for storeEntityData
This commit is contained in:
Tschipp 2019-06-22 11:20:40 +02:00 committed by GitHub
commit a4712b3fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,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();