Skip to content

Commit

Permalink
added DebugOutput for problems with SignalBoxPathway
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Nov 4, 2023
1 parent 46c48c6 commit 9eea45c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public boolean requestWay(final Point p1, final Point p2,
this.onWayAdd(way);
updateToNet(way);
});
System.out.println(
"Requested Pathway from [" + p1 + "] to [" + p2 + "]! Printing StackTrace...");
System.out.println(Thread.currentThread().getStackTrace());
return ways.isPresent();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ public void setPathStatus(final EnumPathUsage status, final @Nullable Point poin
!status.equals(EnumPathUsage.FREE)));
option.setEntry(PathEntryType.PATHUSAGE, status);
}, point);
System.out.println(
"Setting PathStatus [" + status + "] on [" + this + "]! Printing StackTrace...");
System.out.println(Thread.currentThread().getStackTrace());
}

public void setPathStatus(final EnumPathUsage status) {
Expand Down Expand Up @@ -388,6 +391,7 @@ public boolean tryBlock(final BlockPos position) {
resetFirstSignal();
this.setPathStatus(EnumPathUsage.BLOCKED);
isBlocked = true;
System.out.println("Blocked Pathway [" + this + "]!");
return true;
}

Expand Down

0 comments on commit 9eea45c

Please sign in to comment.