Fixed up Bound Sword

Fixed Bound Items charge bar bug
This commit is contained in:
Arcaratus 2016-01-13 19:48:34 -05:00
parent d4f8844660
commit 81ba1ef3e1
2 changed files with 21 additions and 92 deletions

View file

@ -71,10 +71,10 @@ public class ItemBoundTool extends ItemBindable
EntityPlayer player = (EntityPlayer) entityIn;
setHeldDownCount(stack, Math.min(player.getItemInUseDuration(), chargeTime));
}
// else if (!isSelected)
// {
// //TODO Make it so that if you scroll of while charging, does not show the charge bar
// }
else if (!isSelected)
{
setBeingHeldDown(stack, false);
}
}
protected int getHeldDownCount(ItemStack stack)
@ -110,7 +110,6 @@ public class ItemBoundTool extends ItemBindable
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
BindableHelper.checkAndSetItemOwner(stack, player);
// if (!world.isRemote)