the game will now create a new clg when entering the main view
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user