lua now runs on sub editor, added Game.GetEnabledContentPackages back for compatibility and printerror
This commit is contained in:
@@ -1042,12 +1042,15 @@ namespace Barotrauma
|
||||
|
||||
GameSession gameSession = new GameSession(backedUpSubInfo, "", GameModePreset.TestMode, CampaignSettings.Empty, null);
|
||||
gameSession.StartRound(null, false);
|
||||
|
||||
(gameSession.GameMode as TestGameMode).OnRoundEnd = () =>
|
||||
{
|
||||
Submarine.Unload();
|
||||
GameMain.SubEditorScreen.Select();
|
||||
};
|
||||
|
||||
GameMain.Lua.Initialize();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1316,6 +1319,8 @@ namespace Barotrauma
|
||||
|
||||
public void Select(bool enableAutoSave = true)
|
||||
{
|
||||
GameMain.Lua.Stop();
|
||||
|
||||
base.Select();
|
||||
|
||||
GUI.PreventPauseMenuToggle = false;
|
||||
|
||||
Reference in New Issue
Block a user