mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Dont register global xy debug variable if debug is missing or debug.enabled = false
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
xy = "";
|
||||
|
||||
local sdk = sdk;
|
||||
local tostring = tostring;
|
||||
local pairs = pairs;
|
||||
@@ -95,6 +93,10 @@ local large_monster_UI_customization = require("MHR_Overlay.UI.Customizations.la
|
||||
|
||||
local drawing = require("MHR_Overlay.UI.drawing");
|
||||
|
||||
if debug ~= nil and debug.enabled then
|
||||
xy = "";
|
||||
end
|
||||
|
||||
------------------------INIT MODULES-------------------------
|
||||
-- #region
|
||||
screen.init_module();
|
||||
@@ -335,7 +337,7 @@ end);
|
||||
-- #endregion
|
||||
----------------------------D2D------------------------------
|
||||
|
||||
if debug.enabled then
|
||||
if debug ~= nil and debug.enabled then
|
||||
if d2d ~= nil then
|
||||
d2d.register(function()
|
||||
end, function()
|
||||
|
||||
Reference in New Issue
Block a user