calling lua function inside an async function causes lots of issues (probably caused by the fact that it runs on a separate thread?), solved by creating a queue of functions to be called on the main thread
This commit is contained in:
@@ -1017,6 +1017,7 @@ namespace Barotrauma
|
||||
|
||||
SoundManager?.Update();
|
||||
|
||||
GameMain.Lua.Update();
|
||||
GameMain.Lua.hook.Call("think", new object[] { });
|
||||
|
||||
Timing.Accumulator -= Timing.Step;
|
||||
|
||||
Reference in New Issue
Block a user