use
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user