Fixed separate NPE with the Sigil of Holding.

Added possible fix to an Incense glitch.
This commit is contained in:
WayofTime 2016-06-07 21:11:21 -04:00
parent eccf747a09
commit 150ed4c6a9
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ public class ItemSacrificialDagger extends Item implements IMeshProvider
@Override
public void onPlayerStoppedUsing(ItemStack stack, World worldIn, EntityLivingBase entityLiving, int timeLeft)
{
if (entityLiving instanceof EntityPlayer)
if (entityLiving instanceof EntityPlayer && !entityLiving.worldObj.isRemote)
PlayerSacrificeHelper.sacrificePlayerHealth((EntityPlayer) entityLiving);
}