From 207751996bacb74c825b01bef17dbb21e752c861 Mon Sep 17 00:00:00 2001 From: drcrazy Date: Mon, 12 Aug 2019 00:58:00 +0300 Subject: [PATCH] Fix crash with wrench. Closes #1771 --- src/main/java/techreborn/items/tool/ItemWrench.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/techreborn/items/tool/ItemWrench.java b/src/main/java/techreborn/items/tool/ItemWrench.java index 1fd7afb83..850061ad2 100644 --- a/src/main/java/techreborn/items/tool/ItemWrench.java +++ b/src/main/java/techreborn/items/tool/ItemWrench.java @@ -45,7 +45,7 @@ public class ItemWrench extends Item implements IToolHandler { @Override public boolean handleTool(ItemStack stack, BlockPos pos, World world, PlayerEntity player, Direction side, boolean damage) { - if (damage) { + if (!player.world.isClient && damage) { stack.damage(1, player.world.random, (ServerPlayerEntity) player); } return true;