This commit is contained in:
Evil Factory
2021-08-09 23:45:12 -03:00
parent 64ed424a6b
commit 694f7adcc6
@@ -2226,6 +2226,16 @@ namespace Barotrauma
if (condition == 0.0f) { return; } if (condition == 0.0f) { return; }
#if SERVER
var should = GameMain.Lua.hook.Call("itemUse", new DynValue[] { LuaSetup.CreateUserDataSafe(this), LuaSetup.CreateUserDataSafe(character), LuaSetup.CreateUserDataSafe(targetLimb) });
if (should != null && should.CastToBool())
{
return;
}
#endif
bool remove = false; bool remove = false;
foreach (ItemComponent ic in components) foreach (ItemComponent ic in components)