remove itemThink because it uses so much cpu time, because it can literally be called 1000 times a second, blame jimmyl for committing this horrible hook
This commit is contained in:
@@ -1639,8 +1639,6 @@ namespace Barotrauma
|
||||
aiTarget.Update(deltaTime);
|
||||
}
|
||||
|
||||
GameMain.Lua.hook.Call("itemThink." + prefab.Identifier, new object[] { this, deltaTime });
|
||||
|
||||
if (!isActive) { return; }
|
||||
|
||||
ApplyStatusEffects(ActionType.Always, deltaTime, character: (parentInventory as CharacterInventory)?.Owner as Character);
|
||||
|
||||
Reference in New Issue
Block a user