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:
Evil Factory
2022-01-08 16:55:05 -03:00
parent 750d8948f1
commit 5049b2ecbd

View File

@@ -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);