From 45590f1d0d5362aeddf53719b1411d0d2bd23698 Mon Sep 17 00:00:00 2001 From: agrecascino Date: Thu, 18 Aug 2016 21:37:37 -0400 Subject: [PATCH] Update factions.lua --- factions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/factions.lua b/factions.lua index c9c1898..465bed7 100644 --- a/factions.lua +++ b/factions.lua @@ -778,6 +778,7 @@ minetest.is_protected = function(pos, player) if not parcel_faction then return default_is_protected(pos, player) else + if not not player_faction then if parcel_faction.name == player_faction.name then return not parcel_faction:has_permission(player, "build") elseif parcel_faction.attacked_parcels[parcelpos] then -- chunk is being attacked @@ -789,6 +790,7 @@ minetest.is_protected = function(pos, player) else return true end + end end end