From ab652da5f428c7d82fdf0fc973b60f1d17b5baf1 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 10 Nov 2016 20:24:47 +0100 Subject: 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. --- init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.lua') 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 "") -end - +--print=function(text) +-- minetest.log("action", tostring(text) or "") +--end +print = function(t) minetest.log("action", t) minetest.chat_send_all(t) end dofile(advtrains.modpath.."/helpers.lua"); dofile(advtrains.modpath.."/debugitems.lua"); -- cgit v1.2.3