Skip to content

Commit

Permalink
added temporary system to revomve bugged paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 20, 2024
1 parent bca07d6 commit 5e64d6d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ protected void updatePrevious(final SignalBoxPathway pathway) {
public void resetAllPathways() {
ImmutableSet.copyOf(this.startsToPath.values()).forEach(this::resetPathway);
clearPaths();
modeGrid.values().forEach(node -> node.getModes().values()
.forEach(optionEntry -> optionEntry.getEntry(PathEntryType.PATHUSAGE)
.ifPresent(_u -> optionEntry.removeEntry(PathEntryType.PATHUSAGE))));
}

public void resetAllSignals() {
Expand Down

0 comments on commit 5e64d6d

Please sign in to comment.