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:
parent
f0a5b5274f
commit
e541ed67e9
|
@ -310,7 +310,7 @@ public class EntitySentientSpecter extends EntityDemonBase
|
||||||
{
|
{
|
||||||
super.onDeath(cause);
|
super.onDeath(cause);
|
||||||
|
|
||||||
if (!worldObj.isRemote)
|
if (!worldObj.isRemote && getHeldItemMainhand() != null)
|
||||||
{
|
{
|
||||||
this.entityDropItem(getHeldItemMainhand(), 0);
|
this.entityDropItem(getHeldItemMainhand(), 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue