Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Dec 2, 2020
1 parent c5c7a9b commit b570c56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b570c56

Please sign in to comment.