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

@@ -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;
}