mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-10 09:17:34 +01:00
added fallback data
This commit is contained in:
parent
038aece5f7
commit
441a7a6646
4
init.lua
4
init.lua
@ -142,8 +142,8 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
|
|||||||
for _, pos in pairs(positions) do
|
for _, pos in pairs(positions) do
|
||||||
|
|
||||||
meta = minetest.get_meta(pos)
|
meta = minetest.get_meta(pos)
|
||||||
owner = meta:get_string("owner")
|
owner = meta:get_string("owner") or ""
|
||||||
members = meta:get_string("members")
|
members = meta:get_string("members") or ""
|
||||||
|
|
||||||
if owner ~= digger then
|
if owner ~= digger then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user