From 1b5f9e7944fcfab7d19afebbeb2ae5b3f3f1bd48 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sat, 3 Jul 2021 16:30:37 +0200 Subject: [PATCH] Picking up Controller Rails - Controller Rails can now be picked up using a Wrench --- .../components/tracks/ControllerRailBlock.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/tracks/ControllerRailBlock.java b/src/main/java/com/simibubi/create/content/contraptions/components/tracks/ControllerRailBlock.java index 95d44b209..4c803185f 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/tracks/ControllerRailBlock.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/tracks/ControllerRailBlock.java @@ -222,16 +222,9 @@ public class ControllerRailBlock extends AbstractRailBlock implements IWrenchabl BlockState testState = rotate(state, testRotation); if (isStableWith(testState, world, pos)) { placeAndNotify(testState, pos, world); - break; + return ActionResultType.SUCCESS; } } - return ActionResultType.SUCCESS; - } - - @Override - public ActionResultType onSneakWrenched(BlockState state, ItemUseContext context) { - World world = context.getWorld(); - BlockPos pos = context.getPos(); BlockState testState = state.with(BACKWARDS, !state.get(BACKWARDS)); if (isStableWith(testState, world, pos)) placeAndNotify(testState, pos, world);