Fixed Wrench working when player is not sneaking

This commit is contained in:
Raoul Van den Berge
2016-11-09 17:11:21 +01:00
parent b5240a7d68
commit ec8438b6d2
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
- Fixed bug where Disk Manipulator doesn't save disks (raoulvdberge) - Fixed bug where Disk Manipulator doesn't save disks (raoulvdberge)
- Fixed Disk Drive stored quantity GUI text hovering over other text (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 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 ### 1.2.3
- Fixed fluid cache updating wrongly (raoulvdberge) - Fixed fluid cache updating wrongly (raoulvdberge)

View File

@@ -67,7 +67,7 @@ public class ItemWrench extends ItemBase {
@Override @Override
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { 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; return EnumActionResult.PASS;
} }