Hopefully fix #177

master
orwell96 2021-04-25 21:59:02 +02:00
parent 112e3ff255
commit 09bba2c57f
1 changed files with 4 additions and 1 deletions

View File

@ -201,7 +201,10 @@ advtrains.register_tracks("default", {
--set arrowconn (for ATC)
local ph=minetest.pos_to_string(pos)
local _, conns=advtrains.get_rail_info_at(pos, advtrains.all_tracktypes)
atlatc.active.nodes[ph].arrowconn=conns[1].c
local nodeent = atlatc.active.nodes[ph]
if nodeent then
nodeent.arrowconn=conns[1].c
end
end,
advtrains = {