aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-11 15:41:53 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-11 15:41:53 +0200
commit54eca4e736005604ac57e63424533e7568e589b9 (patch)
tree8fa6b9298aec10ea7ef88ee144fa59cac6780107
parent3da05a09b5cf5160a897e8c65b9ce60f19157946 (diff)
downloadminetest-54eca4e736005604ac57e63424533e7568e589b9.tar.gz
minetest-54eca4e736005604ac57e63424533e7568e589b9.tar.bz2
minetest-54eca4e736005604ac57e63424533e7568e589b9.zip
Redirect Lua print to minetest.debug
-rw-r--r--share/server/builtin.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/server/builtin.lua b/share/server/builtin.lua
index 351cf3bb0..2ec678b70 100644
--- a/share/server/builtin.lua
+++ b/share/server/builtin.lua
@@ -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)