move log function to common
This commit is contained in:
parent
1ad59ef496
commit
4fb102d694
2 changed files with 3 additions and 1 deletions
|
@ -12,4 +12,6 @@ this.cellTypes = {
|
||||||
match = 3
|
match = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.log = function(...) mwse.log("[%s] %s", this.modName, string.format(...)) end
|
||||||
|
|
||||||
return this
|
return this
|
||||||
|
|
|
@ -8,7 +8,7 @@ local cells = {}
|
||||||
local ogDestination
|
local ogDestination
|
||||||
|
|
||||||
-- {{{ helper functions
|
-- {{{ 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)
|
local function isZero(spot)
|
||||||
return spot.position.x == 0 and
|
return spot.position.x == 0 and
|
||||||
|
|
Loading…
Add table
Reference in a new issue