From b570c565c2c2c8e573d545791bde640029bd563d Mon Sep 17 00:00:00 2001 From: OgelGames Date: Wed, 2 Dec 2020 17:27:04 +1100 Subject: [PATCH] fix pandorabox-io/pandorabox.io#583 --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 2722364..57eb511 100644 --- a/init.lua +++ b/init.lua @@ -251,11 +251,11 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel) for n = 1, #pos do meta = minetest.get_meta(pos[n]) - owner = meta:get_string("owner") or "" - members = meta:get_string("members") or "" + owner = meta:get_string("owner") + members = meta:get_string("members") -- node change and digger isn't owner - if infolevel == 1 and owner ~= digger then + if infolevel == 1 and owner ~= "" and owner ~= digger then -- and you aren't on the member list if onlyowner or not is_member(meta, digger) then