added fallback data
authorTenPlus1 <kinsellaja@yahoo.com>
Wed, 1 Jun 2016 12:38:58 +0000 (13:38 +0100)
committerTenPlus1 <kinsellaja@yahoo.com>
Wed, 1 Jun 2016 12:38:58 +0000 (13:38 +0100)
init.lua

index 061b184..e284d1c 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -142,10 +142,10 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
        for _, pos in pairs(positions) do
 
                meta = minetest.get_meta(pos)
-               owner = meta:get_string("owner")
-               members = meta:get_string("members")
+               owner = meta:get_string("owner") or ""
+               members = meta:get_string("members") or ""
 
-               if owner ~= digger then 
+               if owner ~= digger then
 
                        if onlyowner
                        or not protector.is_member(meta, digger) then