From ffa9e7b5ebaadb92933816d7820bd2a9de80426b Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 17 May 2018 10:58:53 +0100 Subject: [PATCH] Fix #1516 --- src/main/java/techreborn/items/tools/ItemWrench.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/techreborn/items/tools/ItemWrench.java b/src/main/java/techreborn/items/tools/ItemWrench.java index e9c35b01c..125cf53c3 100644 --- a/src/main/java/techreborn/items/tools/ItemWrench.java +++ b/src/main/java/techreborn/items/tools/ItemWrench.java @@ -56,7 +56,7 @@ public class ItemWrench extends ItemTR implements IToolHandler { @Override public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, 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; } if (CompatManager.isIC2Loaded) {