Another null stack in the Sentient Specters

This commit is contained in:
Nicholas Ignoffo 2017-03-28 18:32:25 -07:00
parent 07e025d635
commit d524cc32b7

View file

@ -479,7 +479,7 @@ public class EntitySentientSpecter extends EntityDemonBase
public void attackEntityWithRangedAttack(EntityLivingBase target, float velocity)
{
ItemStack heldStack = this.getItemStackFromSlot(EntityEquipmentSlot.MAINHAND);
if (heldStack != null && heldStack.getItem() == ModItems.SENTIENT_BOW)
if (!heldStack.isEmpty() && heldStack.getItem() == ModItems.SENTIENT_BOW)
{
EntityTippedArrow arrowEntity = ((ItemSentientBow) heldStack.getItem()).getArrowEntity(getEntityWorld(), heldStack, target, this, velocity);
if (arrowEntity != null)