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:
parent
015620094c
commit
c9ff3330ca
5 changed files with 31 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue