diff options
Diffstat (limited to 'builtin/init.lua')
-rw-r--r-- | builtin/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/builtin/init.lua b/builtin/init.lua index 02fb9db93..b3004468e 100644 --- a/builtin/init.lua +++ b/builtin/init.lua @@ -7,6 +7,15 @@ -- Initialize some very basic things function core.debug(...) core.log(table.concat({...}, "\t")) end +if core.print then + local core_print = core.print + -- Override native print and use + -- terminal if that's turned on + function print(...) + core_print(table.concat({...}, "\t")) + end + core.print = nil -- don't pollute our namespace +end math.randomseed(os.time()) os.setlocale("C", "numeric") minetest = core |