diff options
author | orwell96 <orwell@bleipb.de> | 2018-08-12 14:27:54 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-08-12 14:27:54 +0200 |
commit | d7e29180099fceb7fec8a84efddf9ca7b53194d0 (patch) | |
tree | e79f66a053bdaa180646395eb09bba2c9a255cc9 | |
parent | cb56b8b49aa872642e53fc1a82cbdb546d5bfbcb (diff) | |
download | advtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.tar.gz advtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.tar.bz2 advtrains-d7e29180099fceb7fec8a84efddf9ca7b53194d0.zip |
fix digging unconfigured tcbs
-rw-r--r-- | advtrains_interlocking/tcb_ts_ui.lua | 2 |
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 |