Redirect Lua print to minetest.debug
authorPerttu Ahola <celeron55@gmail.com>
Sun, 11 Mar 2012 13:41:53 +0000 (15:41 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 11 Mar 2012 13:41:53 +0000 (15:41 +0200)
share/server/builtin.lua

index 351cf3bb0590a0e145fbf529cec388f54d7bdfb7..2ec678b70f4548a586029ff851bb567c70d3ecb3 100644 (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)