lua refactor

This commit is contained in:
KadeDev
2021-04-29 15:07:47 -07:00
parent 3c98ddc81a
commit 70b6698a4a
3 changed files with 682 additions and 635 deletions

View File

@ -183,10 +183,10 @@ class PauseSubState extends MusicBeatSubstate
case "Exit to menu":
PlayState.loadRep = false;
#if windows
if (PlayState.lua != null)
if (PlayState.luaModchart != null)
{
Lua.close(PlayState.lua);
PlayState.lua = null;
PlayState.luaModchart.die();
PlayState.luaModchart = null;
}
#end
FlxG.switchState(new MainMenuState());