forked from mtcontrib/factions
Merge branch 'master' of https://github.com/shamoanjac/factions
This commit is contained in:
commit
367879cd4e
@ -783,7 +783,7 @@ minetest.is_protected = function(pos, player)
|
|||||||
return not player_faction:has_permission(player, "claim") and player_faction.power > 0. and not parcel_faction.is_admin
|
return not player_faction:has_permission(player, "claim") and player_faction.power > 0. and not parcel_faction.is_admin
|
||||||
end
|
end
|
||||||
-- no faction
|
-- no faction
|
||||||
if not parcel_faction then
|
if not parcel_faction or not player_faction then
|
||||||
return default_is_protected(pos, player)
|
return default_is_protected(pos, player)
|
||||||
elseif not player_faction then
|
elseif not player_faction then
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user