Fix Game.Settings being nil

This commit is contained in:
Evil Factory
2026-04-04 11:50:35 -03:00
parent 413cc3ed4c
commit 4167448279

View File

@@ -273,6 +273,7 @@ namespace Barotrauma.LuaCs
public LuaGame(IConsoleCommandsService consoleCommands)
{
UserData.RegisterType(typeof(GameSettings));
Settings = UserData.CreateStatic(typeof(GameSettings));
_consoleCommands = consoleCommands;
}