Slight wrench cleanup.
This commit is contained in:
@@ -92,17 +92,13 @@ public class QuartzWrenchItem extends AEBaseItem implements IAEWrench, AEToolIte
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (block instanceof AEBaseBlock) {
|
if (block instanceof AEBaseBlock) {
|
||||||
if (Platform.isClient()) {
|
if (!world.isClient) {
|
||||||
// TODO 1.10-R - if we return FAIL on client, action will not be sent to server.
|
AEBaseBlock aeBlock = (AEBaseBlock) block;
|
||||||
// Fix that in all Block#onItemUseFirst overrides.
|
if (aeBlock.rotateAroundFaceAxis(world, pos, context.getSide())) {
|
||||||
return !world.isClient ? ActionResult.SUCCESS : ActionResult.PASS;
|
player.swingHand(context.getHand());
|
||||||
}
|
}
|
||||||
|
|
||||||
AEBaseBlock aeBlock = (AEBaseBlock) block;
|
|
||||||
if (aeBlock.rotateAroundFaceAxis(world, pos, context.getSide())) {
|
|
||||||
player.swingHand(context.getHand());
|
|
||||||
return !world.isClient ? ActionResult.SUCCESS : ActionResult.FAIL;
|
|
||||||
}
|
}
|
||||||
|
return ActionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
return ActionResult.PASS;
|
return ActionResult.PASS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user