Fix crash with wrench. Closes #1771

This commit is contained in:
drcrazy 2019-08-12 00:58:00 +03:00
parent 56d1d196f0
commit 207751996b

View file

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