Fixed the Sentient Specters, stopping them dropping null items if they have nothing in their hand (only happens due to spawners). Solves #920

This commit is contained in:
WayofTime 2016-09-16 14:11:52 -04:00
parent f0a5b5274f
commit e541ed67e9

View file

@ -310,7 +310,7 @@ public class EntitySentientSpecter extends EntityDemonBase
{
super.onDeath(cause);
if (!worldObj.isRemote)
if (!worldObj.isRemote && getHeldItemMainhand() != null)
{
this.entityDropItem(getHeldItemMainhand(), 0);
}