working serialization + cs mods one-time warning

This commit is contained in:
Oiltanker
2022-04-19 22:08:06 +03:00
parent 8f4d5c4410
commit da251099a3
6 changed files with 418 additions and 64 deletions
@@ -101,7 +101,11 @@ namespace Barotrauma
if (method != null)
{
scriptResilt = method.Invoke(runner, null);
foreach (var type in assembly.GetTypes()) { UserData.UnregisterType(type, true); }
foreach (var type in assembly.GetTypes())
{
//UserData.UnregisterType(type, true);
UserData.UnregisterType(type);
}
}
else LuaCsSetup.PrintCsError("Script Error - no run method detected");
}