forked from mtcontrib/factions
Update factions.lua
This commit is contained in:
parent
0d78830d5b
commit
45590f1d0d
@ -778,6 +778,7 @@ minetest.is_protected = function(pos, player)
|
|||||||
if not parcel_faction then
|
if not parcel_faction then
|
||||||
return default_is_protected(pos, player)
|
return default_is_protected(pos, player)
|
||||||
else
|
else
|
||||||
|
if not not player_faction then
|
||||||
if parcel_faction.name == player_faction.name then
|
if parcel_faction.name == player_faction.name then
|
||||||
return not parcel_faction:has_permission(player, "build")
|
return not parcel_faction:has_permission(player, "build")
|
||||||
elseif parcel_faction.attacked_parcels[parcelpos] then -- chunk is being attacked
|
elseif parcel_faction.attacked_parcels[parcelpos] then -- chunk is being attacked
|
||||||
@ -789,6 +790,7 @@ minetest.is_protected = function(pos, player)
|
|||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user