fix digging unconfigured tcbs

This commit is contained in:
orwell96 2018-08-12 14:27:54 +02:00
parent cb56b8b49a
commit d7e2918009
1 changed files with 1 additions and 1 deletions

View File

@ -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