Fix think hook getting called twice on the client

This commit is contained in:
EvilFactory
2022-12-15 09:10:10 -03:00
parent fe2d0bdddb
commit 2b871c8c48
3 changed files with 9 additions and 9 deletions
@@ -200,7 +200,16 @@ namespace Barotrauma
{
Timer?.Update();
Steam?.Update();
#if CLIENT
Stopwatch luaSw = new Stopwatch();
luaSw.Start();
#endif
Hook?.Call("think");
#if CLIENT
luaSw.Stop();
GameMain.PerformanceCounter.AddElapsedTicks("Think Hook", luaSw.ElapsedTicks);
#endif
}
public void Stop()