Added in #396 and gave the sword blocking
This commit is contained in:
parent
e2db60475f
commit
bc67bb8379
7 changed files with 20 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue