Sigils now don't do their effect when accessing blocks

Should solve #557
This commit is contained in:
Nick 2016-01-09 17:30:10 -08:00
parent b3f965cbe3
commit d868414f5b
6 changed files with 20 additions and 9 deletions

View file

@ -70,8 +70,10 @@ public class ItemSigilVoid extends ItemSigilBase
}
@Override
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos blockPos, EnumFacing side, float hitX, float hitY, float hitZ)
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos blockPos, EnumFacing side, float hitX, float hitY, float hitZ)
{
super.onItemUse(stack, player, world, blockPos, side, hitX, hitY, hitZ);
if (world.isRemote || !BindableHelper.checkAndSetItemOwner(stack, player) || player.isSneaking() || isUnusable(stack))
{
return false;