From 2a81ae7f24c447a91cf804a78aa2e198c8c37512 Mon Sep 17 00:00:00 2001 From: knewjade Date: Sun, 11 Dec 2022 15:11:22 +0900 Subject: [PATCH] Fix factory method --- src/main/java/core/action/reachable/ReachableFacade.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/core/action/reachable/ReachableFacade.java b/src/main/java/core/action/reachable/ReachableFacade.java index 36a48209..a4a08b71 100644 --- a/src/main/java/core/action/reachable/ReachableFacade.java +++ b/src/main/java/core/action/reachable/ReachableFacade.java @@ -21,9 +21,9 @@ public static ILockedReachable createLocked( MinoFactory minoFactory, MinoShifter minoShifter, MinoRotation minoRotation, int maxY, boolean use180Rotation ) { if (use180Rotation) { - return new LockedReachable(minoFactory, minoShifter, minoRotation, maxY); - } else { return new Locked180Reachable(minoFactory, minoShifter, minoRotation, maxY); + } else { + return new LockedReachable(minoFactory, minoShifter, minoRotation, maxY); } } }