From e39ecf9b867e04fb8567ebc9ec51975d9cbbc9f2 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 10 Oct 2024 22:04:25 +0200 Subject: [PATCH] ref: more debug --- .../java/com/troblecodings/signals/signalbox/PathwayData.java | 1 + .../java/com/troblecodings/signals/signalbox/SignalBoxGrid.java | 1 + .../java/com/troblecodings/signals/signalbox/SignalBoxUtil.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java b/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java index 27843686f..d37fe9cbb 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java +++ b/src/main/java/com/troblecodings/signals/signalbox/PathwayData.java @@ -71,6 +71,7 @@ public class PathwayData { public static PathwayData of(final SignalBoxGrid grid, final List 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() diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java index aae118f1c..ef1fdf9f1 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxGrid.java @@ -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); } diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java index 5e3df6967..d7071af43 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxUtil.java @@ -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 modeGrid = grid.modeGrid; if (!modeGrid.containsKey(p1) || !modeGrid.containsKey(p2)) return PathwayRequestResult.NOT_IN_GRID;