diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-11-10 20:24:47 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-11-10 20:24:47 +0100 |
commit | ab652da5f428c7d82fdf0fc973b60f1d17b5baf1 (patch) | |
tree | 086e55aaa292322d897a67390eb59b9404000d87 /init.lua | |
parent | 6a0186f0424d1aad8a43029aebceffb6081b6822 (diff) | |
download | advtrains-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.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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"); |