From 6e0d82f5849fd53dbafaf4d42c7e5ed93c86ac9f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 21 May 2020 21:55:23 +0100 Subject: [PATCH] add 2 minor speedups on allow parcel owner more restrive checks --- OpenSim/Region/CoreModules/World/Land/LandObject.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 9336c51755..fa9c971f38 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -635,6 +635,9 @@ namespace OpenSim.Region.CoreModules.World.Land public bool IsEitherBannedOrRestricted(UUID avatar) { + if (m_scene.RegionInfo.EstateSettings.TaxFree) // region access control only + return false; + if (IsBannedFromLand(avatar)) { return true; @@ -648,6 +651,9 @@ namespace OpenSim.Region.CoreModules.World.Land public bool CanBeOnThisLand(UUID avatar, float posHeight) { + if (m_scene.RegionInfo.EstateSettings.TaxFree) // region access control only + return true; + if (posHeight < m_scene.LandChannel.BanLineSafeHeight && IsBannedFromLand(avatar)) { return false;