From 90ad3456729be26e772b389f95e8f48c13e496c0 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Mon, 24 Aug 2020 20:34:57 +0200 Subject: [PATCH] Slight wrench cleanup. --- .../items/tools/quartz/QuartzWrenchItem.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/main/java/appeng/items/tools/quartz/QuartzWrenchItem.java b/src/main/java/appeng/items/tools/quartz/QuartzWrenchItem.java index 504b0dae9..d9ff9c505 100644 --- a/src/main/java/appeng/items/tools/quartz/QuartzWrenchItem.java +++ b/src/main/java/appeng/items/tools/quartz/QuartzWrenchItem.java @@ -92,17 +92,13 @@ public class QuartzWrenchItem extends AEBaseItem implements IAEWrench, AEToolIte } if (block instanceof AEBaseBlock) { - if (Platform.isClient()) { - // TODO 1.10-R - if we return FAIL on client, action will not be sent to server. - // Fix that in all Block#onItemUseFirst overrides. - return !world.isClient ? ActionResult.SUCCESS : ActionResult.PASS; - } - - AEBaseBlock aeBlock = (AEBaseBlock) block; - if (aeBlock.rotateAroundFaceAxis(world, pos, context.getSide())) { - player.swingHand(context.getHand()); - return !world.isClient ? ActionResult.SUCCESS : ActionResult.FAIL; + if (!world.isClient) { + AEBaseBlock aeBlock = (AEBaseBlock) block; + if (aeBlock.rotateAroundFaceAxis(world, pos, context.getSide())) { + player.swingHand(context.getHand()); + } } + return ActionResult.SUCCESS; } return ActionResult.PASS; }