separated Lua source by client, server and shared

github desktop bugged
This commit is contained in:
Evil Factory
2021-09-15 12:59:19 -03:00
parent 5678f81326
commit 4075e71f7a
12 changed files with 750 additions and 612 deletions
@@ -393,6 +393,8 @@ namespace Barotrauma.Networking
{
GameMain.NetLobbyScreen.ChatInput.Enabled = true;
}
GameMain.Lua.Initialize();
};
clientPeer.OnRequestPassword = (int salt, int retries) =>
{
@@ -2690,6 +2692,8 @@ namespace Barotrauma.Networking
public override void Disconnect()
{
GameMain.Lua.Stop();
allowReconnect = false;
if (clientPeer is SteamP2PClientPeer || clientPeer is SteamP2POwnerPeer)