Fix #794, fix some issues with ic2 wrench, and use new forge perms to check when taping and wrenching blocks

This commit is contained in:
modmuss50 2016-11-05 15:10:28 +00:00
parent 015620094c
commit c9ff3330ca
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
5 changed files with 31 additions and 4 deletions

View file

@ -21,4 +21,11 @@ public class IC2WrenchHelper {
}
return wrench.onItemUseFirst(stack, player, world, pos, side, hitX, hitY, hitZ, hand);
}
public static EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
if (wrench == null) {
wrench = (ItemToolWrench) IC2Items.getItem("wrench").getItem();
}
return wrench.onItemUse(stack, playerIn, worldIn, pos, hand, facing, hitX, hitY, hitZ);
}
}