Fix crash with wrench. Closes #1771
This commit is contained in:
parent
56d1d196f0
commit
207751996b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue