From 1b2f3b1a8d87f0b1e23675fb06d7edc29250197e Mon Sep 17 00:00:00 2001 From: Timo van Veen Date: Fri, 27 Oct 2023 00:42:42 +0200 Subject: [PATCH] Remove unused lines --- .../com/simibubi/create/content/trains/entity/Navigation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/trains/entity/Navigation.java b/src/main/java/com/simibubi/create/content/trains/entity/Navigation.java index 0a19dd7ff..df61cd3f5 100644 --- a/src/main/java/com/simibubi/create/content/trains/entity/Navigation.java +++ b/src/main/java/com/simibubi/create/content/trains/entity/Navigation.java @@ -605,7 +605,7 @@ public class Navigation { frontier.add(new FrontierEntry(distanceToNode2, 0, initialNode1, initialNode2, initialEdge)); int signalWeight = Mth.clamp(ticksWaitingForSignal * 2, Train.Penalties.RED_SIGNAL, 200); - int total = 0; + Search: while (!frontier.isEmpty()) { FrontierEntry entry = frontier.poll(); if (!visited.add(entry.edge)) @@ -616,7 +616,7 @@ public class Navigation { if (distance > maxDistance) continue; - total++; + TrackEdge edge = entry.edge; TrackNode node1 = entry.node1; TrackNode node2 = entry.node2;