fix server start

This commit is contained in:
Johannes Schmelz 2024-11-19 23:59:23 +01:00
parent 3a6f8a945a
commit af80d40700

View File

@ -128,8 +128,7 @@ public class CreateGameMenu {
private void startServerAndJoin() { private void startServerAndJoin() {
new Thread(() -> { new Thread(() -> {
app.start(); app.start();
MonopolyServer server = new MonopolyServer(); app.startServer();
server.run();
// Warte 2 Sekunden // Warte 2 Sekunden
try { try {