Fix for: Inlandsverbindung zeigt Route über Hafen an #49

This commit is contained in:
Jan 2025-12-08 14:18:10 +01:00
parent 607c057beb
commit 9c56b7ec16

View file

@ -373,7 +373,7 @@ public class RoutingService {
}
private boolean skipCain(List<Node> chain, TemporaryContainer container) {
if (containerRateRepository.hasMainRun(chain.getFirst().getId()))
if (containerRateRepository.hasMainRun(chain.getLast().getId()))
return true;
Set<Integer> countryIds = new HashSet<>();