mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
add 2 minor speedups on allow parcel owner more restrive checks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user