Do not throw error when sync_tcb_neighbors fails
parent
7b488f40d9
commit
986c8fcf92
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue