reset more state on close
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
9bd2b6b38f
commit
3ece6523f3
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user