diff --git a/MWSE/mods/celediel/DoorRandomizer/common.lua b/MWSE/mods/celediel/DoorRandomizer/common.lua index 65e061e..05c1694 100644 --- a/MWSE/mods/celediel/DoorRandomizer/common.lua +++ b/MWSE/mods/celediel/DoorRandomizer/common.lua @@ -12,4 +12,6 @@ this.cellTypes = { match = 3 } +this.log = function(...) mwse.log("[%s] %s", this.modName, string.format(...)) end + return this diff --git a/MWSE/mods/celediel/DoorRandomizer/main.lua b/MWSE/mods/celediel/DoorRandomizer/main.lua index c0dd7cf..66d61e7 100644 --- a/MWSE/mods/celediel/DoorRandomizer/main.lua +++ b/MWSE/mods/celediel/DoorRandomizer/main.lua @@ -8,7 +8,7 @@ local cells = {} local ogDestination -- {{{ helper functions -local function log(...) if config.debug then mwse.log("[%s] %s", common.modName, string.format(...)) end end +local function log(...) if config.debug then common.log(...) end end local function isZero(spot) return spot.position.x == 0 and