aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-11-10 20:24:47 +0100
committerorwell96 <mono96.mml@gmail.com>2016-11-10 20:24:47 +0100
commitab652da5f428c7d82fdf0fc973b60f1d17b5baf1 (patch)
tree086e55aaa292322d897a67390eb59b9404000d87 /init.lua
parent6a0186f0424d1aad8a43029aebceffb6081b6822 (diff)
downloadadvtrains-ab652da5f428c7d82fdf0fc973b60f1d17b5baf1.tar.gz
advtrains-ab652da5f428c7d82fdf0fc973b60f1d17b5baf1.tar.bz2
advtrains-ab652da5f428c7d82fdf0fc973b60f1d17b5baf1.zip
rewrite collision system again
this time, it is based on nodes that trains stand on. advtrains.detector (in tracks.lua) keeps a table with nodes that trains are standing /driving on. This will be used now for detector rails.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index dcf2524..c535668 100644
--- a/init.lua
+++ b/init.lua
@@ -4,10 +4,10 @@ advtrains={}
advtrains.modpath = minetest.get_modpath("advtrains")
-print=function(text)
- minetest.log("action", tostring(text) or "<non-string>")
-end
-
+--print=function(text)
+-- minetest.log("action", tostring(text) or "<non-string>")
+--end
+print = function(t) minetest.log("action", t) minetest.chat_send_all(t) end
dofile(advtrains.modpath.."/helpers.lua");
dofile(advtrains.modpath.."/debugitems.lua");