Another variable == nil error.

This commit is contained in:
Duane 2016-06-28 12:37:03 -05:00
parent c2ac5a93be
commit 3c41fa6a3f

View file

@ -393,7 +393,7 @@ local function trans_dig(pos, node, digger)
return
end
local pair = fun_caves.db.translocators[tonumber(data.id)]
if #pair < 1 then
if not pair or #pair < 1 then
print('* Fun Caves: low error in translocator storage')
return
end