Move think hook to a better place
This commit is contained in:
@@ -760,8 +760,6 @@ namespace Barotrauma
|
||||
compatHookPostfixMethods.Clear();
|
||||
}
|
||||
|
||||
public void Update() { }
|
||||
|
||||
private Stopwatch performanceMeasurement = new Stopwatch();
|
||||
|
||||
[MoonSharpHidden]
|
||||
|
||||
@@ -198,9 +198,9 @@ namespace Barotrauma
|
||||
|
||||
public void Update()
|
||||
{
|
||||
Hook?.Update();
|
||||
Timer?.Update();
|
||||
Steam?.Update();
|
||||
Hook?.Call("think");
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
@@ -250,7 +250,6 @@ namespace Barotrauma
|
||||
|
||||
PrintMessage("Lua! Version " + AssemblyInfo.GitRevision);
|
||||
|
||||
|
||||
if (File.Exists(configFileName))
|
||||
{
|
||||
using (var file = File.Open(configFileName, FileMode.Open, FileAccess.Read))
|
||||
|
||||
Reference in New Issue
Block a user