some improves and fixes:
1. should get the last loadded aseembly by checking its version instead of reversing. 2. fixed throw an exception when CsScriptRunner run the second time. 3. an argument carried by an UnregisterType called somewhere have had been accidentally removed.
This commit is contained in:
@@ -3234,6 +3234,7 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
GameMain.LuaCs.CsScript.Run(string.Join(" ", args));
|
||||
GameMain.LuaCs.RecreateCsScript();
|
||||
}));
|
||||
|
||||
commands.Add(new Command("cl_reloadlua", "reloads lua on the client", (string[] args) =>
|
||||
|
||||
Reference in New Issue
Block a user