the game will now create a new clg when entering the main view

This commit is contained in:
Fleischer Hanno
2024-12-16 11:38:31 +01:00
parent e8506e607c
commit 61ea4c3276
4 changed files with 26 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ public class MdgaApp extends SimpleApplication {
/**
* The client game logic.
*/
private final ClientGameLogic clientGameLogic;
private ClientGameLogic clientGameLogic;
private ExecutorService executor;
@@ -204,6 +204,7 @@ public void enter(MdgaState state) {
switch (state) {
case MAIN:
view = mainView;
clientGameLogic.clear();
break;
case LOBBY:
view = lobbyView;