From c67770833b772e438f81ac80f10f1c46bbeebcfa Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 25 Oct 2017 10:31:07 +0200 Subject: Fix coupling and collisions in certain cases If a train moved towards another train, and the other train's step was executed after the first one's, the trains did eventually not collide. Fix by moving the enter_node and collision check to step_b Also change some couple behavior --- advtrains/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains/init.lua') diff --git a/advtrains/init.lua b/advtrains/init.lua index 6255780..6f81a40 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -105,6 +105,8 @@ if minetest.settings:get_bool("advtrains_enable_debugging") then if not context then return end local text=advtrains.print_concat_table({t, ...}) advtrains.drb_record(context, text) + + --atlog("@@",advtrains.atprint_context_tid,t,...) end atdebug=function(t, ...) local text=advtrains.print_concat_table({t, ...}) -- cgit v1.2.3