From ec8438b6d2ca958138e70c4025ec5dc6414b5261 Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Wed, 9 Nov 2016 17:11:21 +0100 Subject: [PATCH] Fixed Wrench working when player is not sneaking --- CHANGELOG.md | 1 + .../java/com/raoulvdberge/refinedstorage/item/ItemWrench.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b79be8e81..7dbfd3dcd 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fixed bug where Disk Manipulator doesn't save disks (raoulvdberge) - Fixed Disk Drive stored quantity GUI text hovering over other text (raoulvdberge) - Fixed External Storage being in item and fluid mode at the same time (raoulvdberge) +- Fixed Wrench working when player is not sneaking (raoulvdberge) ### 1.2.3 - Fixed fluid cache updating wrongly (raoulvdberge) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/item/ItemWrench.java b/src/main/java/com/raoulvdberge/refinedstorage/item/ItemWrench.java index c18bc0274..656e58cc3 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/item/ItemWrench.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/item/ItemWrench.java @@ -67,7 +67,7 @@ public class ItemWrench extends ItemBase { @Override public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { - if (world.isRemote) { + if (world.isRemote || !player.isSneaking()) { return EnumActionResult.PASS; }