Do not throw error when sync_tcb_neighbors fails

master
orwell96 2019-08-29 21:11:27 +02:00
parent 7b488f40d9
commit 986c8fcf92
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ function ildb.sync_tcb_neighbors(pos, connid)
local found_tcbs = { {p = pos, s = connid} } local found_tcbs = { {p = pos, s = connid} }
local node_ok, conns, rhe = advtrains.get_rail_info_at(pos, advtrains.all_tracktypes) local node_ok, conns, rhe = advtrains.get_rail_info_at(pos, advtrains.all_tracktypes)
if not node_ok then if not node_ok then
error("update_tcb_neighbors but node is NOK: "..minetest.pos_to_string(pos)) atwarn("update_tcb_neighbors but node is NOK: "..minetest.pos_to_string(pos))
return
end end
--atdebug("Traversing from ",pos, connid) --atdebug("Traversing from ",pos, connid)