diff --git a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java index 2a6180494..91d6f76b7 100644 --- a/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java +++ b/src/main/java/com/troblecodings/signals/signalbox/SignalBoxPathway.java @@ -263,16 +263,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();