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