Skip to content

Commit

Permalink
maby fix: signals updateing when the should not
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 20, 2024
1 parent 865ca1b commit 125f92a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ public void resetPathway(final @Nullable Point point) {
this.setPathStatus(EnumPathUsage.FREE, point);
resetFirstSignal();
if (data.totalPathwayReset(point)) {
this.isBlocked = false;
resetOther();
resetAllTrainNumbers();
sendTrainNumberUpdates();
Expand All @@ -442,6 +441,7 @@ public void resetPathway(final @Nullable Point point) {
next.updatePreSignals();
next.updateSignalStates();
}
this.isBlocked = false;
}
}

Expand Down Expand Up @@ -562,12 +562,12 @@ private boolean isPowerd(final BlockPos pos) {
public boolean tryBlock(final BlockPos position) {
if (!data.tryBlock(position))
return false;
isBlocked = true;
resetFirstSignal();
this.setPathStatus(EnumPathUsage.BLOCKED);
if (!isBlocked) {
getTrainNumberFromPrevious();
}
isBlocked = true;
return true;
}

Expand Down

0 comments on commit 125f92a

Please sign in to comment.