From 863e7040a06e0fa5c847103b6b7e77fec93f7fc5 Mon Sep 17 00:00:00 2001 From: agrecascino Date: Thu, 18 Aug 2016 21:05:44 -0400 Subject: [PATCH] Static typing == cancer --- factions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factions.lua b/factions.lua index 693e2f2..c9c1898 100644 --- a/factions.lua +++ b/factions.lua @@ -778,7 +778,7 @@ minetest.is_protected = function(pos, player) if not parcel_faction then return default_is_protected(pos, player) else - if parcel_faction.name == 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 if parcel_faction.attacked_parcels[parcelpos][player_faction] then -- attacked by the player's faction