Don't allow to remove TCB when a signal is assigned

h137
orwell96 2019-08-26 20:46:08 +02:00
parent 2d8c13885a
commit d867cd723f
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ minetest.register_node("advtrains_interlocking:tcb_node", {
local tcb = ildb.get_tcb(tcbpos)
if not tcb then return true end
for connid=1,2 do
if tcb[connid].ts_id then
if tcb[connid].ts_id or tcb[connid].signal then
return false
end
end