reset more state on close
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-08-24 17:37:01 -04:00
parent 9bd2b6b38f
commit 3ece6523f3
2 changed files with 4 additions and 4 deletions

View File

@ -595,6 +595,9 @@ public class Globals {
Globals.playerEntity = null;
Globals.playerCamera = null;
Globals.firstPersonEntity = null;
Globals.clientPlayer = null;
clientScene = new Scene();
clientSceneWrapper = new ClientSceneWrapper(clientScene, new CollisionEngine());
}

View File

@ -37,10 +37,7 @@ public class MainMenuLoading {
//
//reveal in game main menu
Window inGameMainMenu = (Window)Globals.elementManager.getWindow(WindowStrings.WINDOW_MENU_INGAME_MAIN);
if(inGameMainMenu != null){
WindowUtils.recursiveSetVisible(inGameMainMenu,false);
}
WindowUtils.closeWindow(WindowStrings.WINDOW_MENU_INGAME_MAIN);
MainMenuLoading.loadMainMenu(params);
}