Fixed separate NPE with the Sigil of Holding.
Added possible fix to an Incense glitch.
This commit is contained in:
parent
eccf747a09
commit
150ed4c6a9
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue