Fix #1516
This commit is contained in:
parent
8cf66a7f1d
commit
ffa9e7b5eb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public class ItemWrench extends ItemTR implements IToolHandler {
|
||||||
@Override
|
@Override
|
||||||
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos,
|
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos,
|
||||||
EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
||||||
if (!PermissionAPI.hasPermission(player.getGameProfile(), RebornPermissions.WRENCH_BLOCK, new BlockPosContext(player, pos, world.getBlockState(pos), facing))) {
|
if (!world.isRemote && !PermissionAPI.hasPermission(player.getGameProfile(), RebornPermissions.WRENCH_BLOCK, new BlockPosContext(player, pos, world.getBlockState(pos), facing))) {
|
||||||
return EnumActionResult.PASS;
|
return EnumActionResult.PASS;
|
||||||
}
|
}
|
||||||
if (CompatManager.isIC2Loaded) {
|
if (CompatManager.isIC2Loaded) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue