Skip to content

Commit

Permalink
Fix factory method
Browse files Browse the repository at this point in the history
  • Loading branch information
knewjade committed Dec 11, 2022
1 parent 268d901 commit 2a81ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/core/action/reachable/ReachableFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 2a81ae7

Please sign in to comment.