This commit is contained in:
Alexander Bachinger
2025-05-16 15:19:08 +02:00
parent 9846a505da
commit 37f7dd75ff
4 changed files with 17 additions and 15 deletions

View File

@@ -17,10 +17,10 @@ public class Car extends Thread {
public void run() {
try {
Thread.sleep(Variables.CROSSING_TIME);
guard.leaving();
guard.leavingBridge();
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
}
}