add 2 minor speedups on allow parcel owner more restrive checks

This commit is contained in:
UbitUmarov
2020-05-21 21:55:23 +01:00
parent 35b0b77656
commit 6e0d82f584

View File

@@ -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;