Remove preload_item_visuals code
[oweals/minetest.git] / builtin / init.lua
index 095771d19be32ea144d600892d923d17048660f5..6b27cf76e16d99694165da80d2a3eddb4f4c68ff 100644 (file)
@@ -6,7 +6,20 @@
 --
 
 -- Initialize some very basic things
-print = core.debug
+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(...)
+               local n, t = select("#", ...), { ... }
+               for i = 1, n do
+                       t[i] = tostring(t[i])
+               end
+               core_print(table.concat(t, "\t"))
+       end
+       core.print = nil -- don't pollute our namespace
+end
 math.randomseed(os.time())
 os.setlocale("C", "numeric")
 minetest = core