This commit is contained in:
Evil Factory
2021-08-09 23:45:12 -03:00
parent 64ed424a6b
commit 694f7adcc6

View File

@@ -2225,7 +2225,17 @@ namespace Barotrauma
}
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;
foreach (ItemComponent ic in components)