From fd664c6b54e008a0b1209f52b38f32f5816de929 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Thu, 27 Jun 2019 13:51:59 -0500 Subject: [PATCH] Return: default_is_protected --- protection_override.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protection_override.lua b/protection_override.lua index 9ce96e8..f72ecbc 100644 --- a/protection_override.lua +++ b/protection_override.lua @@ -4,13 +4,14 @@ minetest.is_protected = function(pos, player) local y = pos.y if factions_config.protection_depth_height_limit and (pos.y < factions_config.protection_max_depth or pos.y > factions_config.protection_max_height) then - return false + return default_is_protected(pos, player) end local parcelpos = factions.get_parcel_pos(pos) local parcel_faction, parcel_fac_name = factions.get_parcel_faction(parcelpos) local player_faction local player_fac_name + if player then player_faction, player_fac_name = factions.get_player_faction(player) end @@ -37,5 +38,5 @@ minetest.is_protected = function(pos, player) else return true end - return false + return default_is_protected(pos, player) end