Fix large monster enabled check

This commit is contained in:
praydog
2022-02-07 06:50:45 -08:00
parent 4496dd8110
commit 92608056ed

View File

@@ -211,7 +211,8 @@ 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.enabled then
if not config.current_config.large_monster_UI.dynamic.enabled or
not config.current_config.large_monster_UI.static.enabled then
return;
end
@@ -249,7 +250,9 @@ function large_monster.update_position(enemy)
end
function large_monster.update(enemy)
if not config.current_config.large_monster_UI.enabled then
-- 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
not config.current_config.large_monster_UI.static.enabled then
return;
end