aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 8991025..5fdb57d 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -101,7 +101,7 @@ sid=function(id) if id then return string.sub(id, -6) end end
if minetest.settings:get_bool("advtrains_enable_debugging") then
atprint=function(t, ...)
- local context=advtrains.atprint_context_tid
+ local context=advtrains.atprint_context_tid or ""
if not context then return end
local text=advtrains.print_concat_table({t, ...})
advtrains.drb_record(context, text)
@@ -303,7 +303,7 @@ advtrains.mainloop_runcnt=0
minetest.register_globalstep(function(dtime_mt)
return advtrains.pcall(function()
advtrains.mainloop_runcnt=advtrains.mainloop_runcnt+1
- atprint("Running the main loop, runcnt",advtrains.mainloop_runcnt)
+ --atprint("Running the main loop, runcnt",advtrains.mainloop_runcnt)
--call load once. see advtrains.load() comment
if not init_load then
advtrains.load()