diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-01 13:38:58 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-01 13:38:58 +0100 |
commit | 441a7a664627b89d1e38baf49e54a0f4bc016af1 (patch) | |
tree | ecc70ddb9f189748cd9a303789c520f36476faae | |
parent | 038aece5f782111197af295655f6bd6ec3e2c414 (diff) |
added fallback data
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |