Added in #396 and gave the sword blocking

This commit is contained in:
Arcaratus 2015-07-27 14:02:32 -04:00
parent e2db60475f
commit bc67bb8379
7 changed files with 20 additions and 2 deletions

View file

@ -121,6 +121,7 @@ public class EnergySword extends ItemSword
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
super.onItemRightClick(par1ItemStack, par2World, par3EntityPlayer);
if (!EnergyItems.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer) || par3EntityPlayer.isSneaking())
{
this.setActivated(par1ItemStack, !getActivated(par1ItemStack));