summaryrefslogtreecommitdiff
path: root/protection.lua
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2016-09-13 13:20:48 -0500
committerBrandon <brandon@bremaweb.com>2016-09-13 13:20:48 -0500
commit971cb158faf89e26c7ce4ef4dc0a6938c5261e92 (patch)
tree9f71a8cc0565b64f7d2152e3fc581d8e741f6978 /protection.lua
parent12dbc31151eb9c689af2351e0b2779db23702b65 (diff)
Fix shared door not working
Diffstat (limited to 'protection.lua')
-rw-r--r--protection.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/protection.lua b/protection.lua
index 40989f8..45efa75 100644
--- a/protection.lua
+++ b/protection.lua
@@ -30,7 +30,7 @@ function landrush.can_interact(pos, name)
-- see if the owner is offline, and area is not shared then it's off limits
if ( landrush.claims[chunk].owner ~= name and landrush.config:get_bool("onlineProtection") == false ) then
- if ( minetest.get_player_by_name(owner) ~= nil ) then
+ if ( minetest.get_player_by_name(landrush.claims[chunk].owner) ~= nil ) then
minetest.chat_send_player( landrush.claims[chunk].owner, "You are being griefed by "..name.." at "..minetest.pos_to_string(pos) )
for u,u in pairs(landrush.claims[chunk].shared) do