aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-08-29 21:11:27 +0200
committerorwell96 <orwell@bleipb.de>2019-08-29 21:11:27 +0200
commit986c8fcf92925f8f36ea8957270eeff829b7abf1 (patch)
tree57af461a9cd449ce6725965e0cf9fc3ec3103bb9 /advtrains_interlocking
parent7b488f40d95c2d68db898d7cb228e17e001cea73 (diff)
downloadadvtrains-986c8fcf92925f8f36ea8957270eeff829b7abf1.tar.gz
advtrains-986c8fcf92925f8f36ea8957270eeff829b7abf1.tar.bz2
advtrains-986c8fcf92925f8f36ea8957270eeff829b7abf1.zip
Do not throw error when sync_tcb_neighbors fails
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/database.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua
index 7571a2c..8df874f 100644
--- a/advtrains_interlocking/database.lua
+++ b/advtrains_interlocking/database.lua
@@ -336,7 +336,8 @@ function ildb.sync_tcb_neighbors(pos, connid)
local found_tcbs = { {p = pos, s = connid} }
local node_ok, conns, rhe = advtrains.get_rail_info_at(pos, advtrains.all_tracktypes)
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
--atdebug("Traversing from ",pos, connid)