mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 12:28:03 -08:00
Fix Abnormal Statuses showing trash values when teleporting to Training Area
This commit is contained in:
@@ -12,6 +12,7 @@ local stamina_UI_entity;
|
||||
local rage_UI_entity;
|
||||
local env_creature;
|
||||
local error_handler;
|
||||
local utils;
|
||||
|
||||
local sdk = sdk;
|
||||
local tostring = tostring;
|
||||
@@ -52,7 +53,7 @@ function this.update()
|
||||
|
||||
local _displayed_creatures = {};
|
||||
|
||||
if cached_config.settings.max_distance == 0 then
|
||||
if utils.number.is_equal(cached_config.settings.max_distance, 0) then
|
||||
displayed_creatures = {};
|
||||
return;
|
||||
end
|
||||
@@ -116,6 +117,7 @@ function this.init_dependencies()
|
||||
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||
env_creature = require("MHR_Overlay.Endemic_Life.env_creature");
|
||||
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||
utils = require("MHR_Overlay.Misc.utils");
|
||||
end
|
||||
|
||||
function this.init_module()
|
||||
|
||||
@@ -11,6 +11,7 @@ local health_UI_entity;
|
||||
local stamina_UI_entity;
|
||||
local rage_UI_entity;
|
||||
local error_handler;
|
||||
local utils;
|
||||
|
||||
local sdk = sdk;
|
||||
local tostring = tostring;
|
||||
@@ -116,7 +117,7 @@ function this.update_dynamic_monsters(large_monster_list, cached_config)
|
||||
|
||||
local _displayed_dynamic_monsters = {};
|
||||
|
||||
if dynamic_cached_config.max_distance == 0 then
|
||||
if utils.number.is_equal(dynamic_cached_config.max_distance, 0) then
|
||||
displayed_dynamic_monsters = {};
|
||||
return;
|
||||
end
|
||||
@@ -407,6 +408,7 @@ function this.init_dependencies()
|
||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||
rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||
utils = require("MHR_Overlay.Misc.utils");
|
||||
end
|
||||
|
||||
function this.init_module()
|
||||
|
||||
@@ -10,6 +10,7 @@ local drawing;
|
||||
local health_UI_entity;
|
||||
local stamina_UI_entity;
|
||||
local error_handler;
|
||||
local utils;
|
||||
|
||||
local sdk = sdk;
|
||||
local tostring = tostring;
|
||||
@@ -52,7 +53,7 @@ local displayed_monsters = {};
|
||||
function this.update()
|
||||
local cached_config = config.current_config.small_monster_UI;
|
||||
|
||||
if cached_config.dynamic_positioning.enabled and cached_config.dynamic_positioning.max_distance == 0 then
|
||||
if cached_config.dynamic_positioning.enabled and utils.number.is_equal(cached_config.dynamic_positioning.max_distance, 0) then
|
||||
displayed_monsters = {};
|
||||
return;
|
||||
end
|
||||
@@ -179,6 +180,7 @@ function this.init_dependencies()
|
||||
health_UI_entity = require("MHR_Overlay.UI.UI_Entities.health_UI_entity");
|
||||
stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity");
|
||||
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||
utils = require("MHR_Overlay.Misc.utils");
|
||||
end
|
||||
|
||||
function this.init_module()
|
||||
|
||||
Reference in New Issue
Block a user