aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-08-26 20:46:08 +0200
committerorwell96 <orwell@bleipb.de>2019-08-26 20:46:08 +0200
commitd867cd723f373b0fc52bd2cdd19176a29598f8be (patch)
tree705872efc56437752c6dd1cdc49a0b4f65fd0b7a /advtrains_interlocking/tcb_ts_ui.lua
parent2d8c13885aa33a0f5eb43b16a1131f187fad75e7 (diff)
downloadadvtrains-d867cd723f373b0fc52bd2cdd19176a29598f8be.tar.gz
advtrains-d867cd723f373b0fc52bd2cdd19176a29598f8be.tar.bz2
advtrains-d867cd723f373b0fc52bd2cdd19176a29598f8be.zip
Don't allow to remove TCB when a signal is assigned
Diffstat (limited to 'advtrains_interlocking/tcb_ts_ui.lua')
-rw-r--r--advtrains_interlocking/tcb_ts_ui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua
index dca50da..6c773ab 100644
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -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