Redirect Lua print to minetest.debug

This commit is contained in:
Perttu Ahola 2012-03-11 15:41:53 +02:00
parent 3da05a09b5
commit 54eca4e736
1 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,16 @@
-- before loading and running any mods.
--
--
-- Override some Lua library functions
--
print = minetest.debug
--
--
--
function basic_dump2(o)
if type(o) == "number" then
return tostring(o)