mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -124,7 +124,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
if (string.IsNullOrWhiteSpace(ownerString))
|
||||
continue;
|
||||
|
||||
if (!UUID.TryParse(ownerString, out UUID estateOwner) || estateOwner == UUID.Zero)
|
||||
if (!UUID.TryParse(ownerString, out UUID estateOwner) || estateOwner.IsZero())
|
||||
continue;
|
||||
|
||||
// Check If Estate Exists (Skip If So)
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
|
||||
foreach (RegionInfo region in regions)
|
||||
{
|
||||
if (region.RegionID == UUID.Zero)
|
||||
if (region.RegionID.IsZero())
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[LOAD REGIONS PLUGIN]: Region {0} has invalid UUID {1}",
|
||||
|
||||
Reference in New Issue
Block a user