Fixed NRE with status effect luahook
This commit is contained in:
@@ -1565,12 +1565,15 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string luaHooks in luaHook)
|
if (luaHook != null)
|
||||||
{
|
{
|
||||||
var result = GameMain.LuaCs.Hook.Call<bool?>(luaHooks, this, deltaTime, entity, targets, worldPosition);
|
foreach (string luaHooks in luaHook)
|
||||||
|
{
|
||||||
|
var result = GameMain.LuaCs.Hook.Call<bool?>(luaHooks, this, deltaTime, entity, targets, worldPosition);
|
||||||
|
|
||||||
if (result != null && result.Value)
|
if (result != null && result.Value)
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Hull hull = GetHull(entity);
|
Hull hull = GetHull(entity);
|
||||||
|
|||||||
Reference in New Issue
Block a user