From 290a8bb5aecb22462d8fd5d7301f8d45a0a63575 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Mon, 11 Apr 2022 13:16:24 -0300 Subject: [PATCH] initialize Lua in multiplayer after you downloaded mods --- .../BarotraumaClient/ClientSource/Networking/GameClient.cs | 2 -- .../BarotraumaClient/ClientSource/Screens/ModDownloadScreen.cs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaClient/ClientSource/Networking/GameClient.cs b/Barotrauma/BarotraumaClient/ClientSource/Networking/GameClient.cs index e6a43556e..978c63676 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/Networking/GameClient.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/Networking/GameClient.cs @@ -1274,8 +1274,6 @@ namespace Barotrauma.Networking { GameMain.NetLobbyScreen.ChatInput.Enabled = true; } - - GameMain.Lua.Initialize(); } private IEnumerable WaitInServerQueue() diff --git a/Barotrauma/BarotraumaClient/ClientSource/Screens/ModDownloadScreen.cs b/Barotrauma/BarotraumaClient/ClientSource/Screens/ModDownloadScreen.cs index 6e278ac0a..7edee9c1c 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/Screens/ModDownloadScreen.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/Screens/ModDownloadScreen.cs @@ -90,6 +90,7 @@ namespace Barotrauma .Where(p => p != null).ToArray()); } GameMain.NetLobbyScreen.Select(); + GameMain.Lua.Initialize(); return; } @@ -295,6 +296,7 @@ namespace Barotrauma ContentPackageManager.EnabledPackages.SetRegular(regularPackages); GameMain.NetLobbyScreen.Select(); + GameMain.Lua.Initialize(); } } }