diff --git a/trainlogic.lua b/trainlogic.lua index 633024d..5e3936f 100644 --- a/trainlogic.lua +++ b/trainlogic.lua @@ -675,17 +675,18 @@ function advtrains.try_connect_trains(id1, id2) if not frontpos1 or not frontpos2 or not backpos1 or not backpos2 then return end + local couple_spawnradius=0.7 --case 1 (first train is front) - if vector.distance(frontpos2, backpos1)<0.5 then + if vector.distance(frontpos2, backpos1)