diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java index e411ddbf0..741b215bc 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java @@ -264,16 +264,16 @@ protected void updateSignalStates() { final MainSignalIdentifier startSignal = data.getStartSignal(); final MainSignalIdentifier endSignal = data.getEndSignal(); if (startSignal != null) { - if (isBlocked) - return; - final SignalState previous = startSignal.state; - startSignal.state = SignalState.GREEN; - if (!startSignal.state.equals(previous)) - greenSignals.add(startSignal); - data.getPreSignals().forEach(signalIdent -> { - signalIdent.state = SignalState.GREEN; - greenSignals.add(signalIdent); - }); + if (!isBlocked) { + final SignalState previous = startSignal.state; + startSignal.state = SignalState.GREEN; + if (!startSignal.state.equals(previous)) + greenSignals.add(startSignal); + data.getPreSignals().forEach(signalIdent -> { + signalIdent.state = SignalState.GREEN; + greenSignals.add(signalIdent); + }); + } } final Map distantSignalPositions = data .getOtherSignals(); @@ -734,4 +734,4 @@ public boolean isInterSignalBoxPathway() { public SignalBoxGrid getGrid() { return grid; } -} \ No newline at end of file +}