Skip to content

Commit

Permalink
ref: more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 10, 2024
1 parent e2016fb commit e39ecf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class PathwayData {

public static PathwayData of(final SignalBoxGrid grid, final List<SignalBoxNode> pNodes,
final PathType type) {
System.out.println("PathwayNodes: " + pNodes);
final PathwayData data = SignalBoxFactory.getFactory().getPathwayData();
data.prepareData(grid, pNodes, type);
if (!data.checkForShuntingPath() || !data.checkForPreviousProtectionWay()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public void read(final NBTWrapper tag) {
if (!states.isEmpty())
enabledSubsidiaryTypes.put(node.getPoint(), states);
});
System.out.println(modeGrid.keySet());
counter = tag.getInteger(SUBSIDIARY_COUNTER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public Point getPoint() {

public static PathwayRequestResult requestPathway(final SignalBoxGrid grid, final Point p1,
final Point p2, final PathType pathType) {
System.out.println("Requesting PW from " + p1 + " to " + p2 + "!");
final Map<Point, SignalBoxNode> modeGrid = grid.modeGrid;
if (!modeGrid.containsKey(p1) || !modeGrid.containsKey(p2))
return PathwayRequestResult.NOT_IN_GRID;
Expand Down

0 comments on commit e39ecf9

Please sign in to comment.