mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Fix NPE
This commit is contained in:
1 parent
d988fb849d
commit
208de8ad3a
1 file changed
+3
-1
@@ -127,7 +127,9 @@ public class EntityButterfly extends EntityCreature implements IEntityButterfly
|
||||
super.writeEntityToNBT(nbttagcompound);
|
||||
|
||||
NBTTagCompound bio = new NBTTagCompound();
|
||||
contained.writeToNBT(bio);
|
||||
if (contained != null)
|
||||
contained.writeToNBT(bio);
|
||||
|
||||
nbttagcompound.setTag("BTFLY", bio);
|
||||
|
||||
if (pollen != null) {
|
||||
|
||||
Reference in new issue
Block a user