worse but less crashing
This commit is contained in:
parent
95bad1494f
commit
efbd7930ac
|
@ -4,6 +4,7 @@ local config = require("celediel.NPCsGoHome.config").getConfig()
|
||||||
local common = require("celediel.NPCsGoHome.common")
|
local common = require("celediel.NPCsGoHome.common")
|
||||||
local checks = require("celediel.NPCsGoHome.functions.checks")
|
local checks = require("celediel.NPCsGoHome.functions.checks")
|
||||||
local processors = require("celediel.NPCsGoHome.functions.processors")
|
local processors = require("celediel.NPCsGoHome.functions.processors")
|
||||||
|
local inspect = require("inspect")
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ variables and such
|
-- {{{ variables and such
|
||||||
|
@ -159,8 +160,11 @@ end
|
||||||
local function onKeyDown(e)
|
local function onKeyDown(e)
|
||||||
-- if alt log runtimeData
|
-- if alt log runtimeData
|
||||||
if e.isAltDown then
|
if e.isAltDown then
|
||||||
-- log(common.logLevels.small, common.inspect(common.runtimeData))
|
-- ! this crashes my fully modded setup and I dunno why
|
||||||
log(common.logLevels.none, json.encode(common.runtimeData, { indent = true }))
|
-- ? doesn't crash my barely modded testing setup though
|
||||||
|
-- log(common.logLevels.none, json.encode(common.runtimeData, { indent = true }))
|
||||||
|
-- inspect handles userdata and tables within tables badly
|
||||||
|
log(common.logLevels.none, inspect(common.runtimeData))
|
||||||
end
|
end
|
||||||
-- if ctrl log position data formatted for positions.lua
|
-- if ctrl log position data formatted for positions.lua
|
||||||
if e.isControlDown then
|
if e.isControlDown then
|
||||||
|
|
Loading…
Reference in a new issue