Invert logic, oops

This commit is contained in:
praydog
2022-02-07 07:40:33 -08:00
parent 92608056ed
commit becadfb655

View File

@@ -211,7 +211,7 @@ local get_transform_method = sdk.find_type_definition("via.GameObject"):get_meth
local get_position_method = sdk.find_type_definition("via.Transform"):get_method("get_Position")
function large_monster.update_position(enemy)
if not config.current_config.large_monster_UI.dynamic.enabled or
if not config.current_config.large_monster_UI.dynamic.enabled and
not config.current_config.large_monster_UI.static.enabled then
return;
end
@@ -251,7 +251,7 @@ end
function large_monster.update(enemy)
-- maybe more checks are needed here i'm not fully aware of how the code flows here
if not config.current_config.large_monster_UI.dynamic.enabled or
if not config.current_config.large_monster_UI.dynamic.enabled and
not config.current_config.large_monster_UI.static.enabled then
return;
end