aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-08-12 14:27:54 +0200
committerorwell96 <orwell@bleipb.de>2018-08-12 14:27:54 +0200
commitd7e29180099fceb7fec8a84efddf9ca7b53194d0 (patch)
treee79f66a053bdaa180646395eb09bba2c9a255cc9 /advtrains_interlocking/tcb_ts_ui.lua
parentcb56b8b49aa872642e53fc1a82cbdb546d5bfbcb (diff)
downloadadvtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.tar.gz
advtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.tar.bz2
advtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.zip
fix digging unconfigured tcbs
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 ab7de34..0df3d3a 100644
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -79,7 +79,7 @@ minetest.register_node("advtrains_interlocking:tcb_node", {
after_dig_node = function(pos, oldnode, oldmetadata, player)
if not oldmetadata or not oldmetadata.fields then return end
local tcbpts = oldmetadata.fields.tcb_pos
- if tcbpts ~= "" then
+ if tcbpts and tcbpts ~= "" then
local tcbpos = minetest.string_to_pos(tcbpts)
ildb.remove_tcb(tcbpos)
end