From 77407d0cad40363ddafecec13dcd8cb2325046c9 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Thu, 22 Jan 2015 04:44:37 +0100 Subject: [PATCH] buying a plot does no longer permit the player to modify other plots --- protection.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protection.lua b/protection.lua index 2694749..275428b 100644 --- a/protection.lua +++ b/protection.lua @@ -41,6 +41,9 @@ minetest.is_protected = function(pos, name) and p.z <= pos.z and (p.z + p.bsizez) >= pos.z) then if( p.owner and p.owner == name ) then return false; + -- the player cannot modify other plots, even though he may be house owner of another house and be allowed to modify common ground + else + return true; end -- if the player just owns another plot in the village, check if it's one where villagers may live elseif( p.owner and p.owner == name ) then