== UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-08 23:35:56 +00:00
parent cb98fb309c
commit 357f20eb14
73 changed files with 251 additions and 260 deletions

View File

@@ -383,7 +383,7 @@ namespace OpenSim.Groups
}
// Can't delete Everyone and Owners roles
if (roleID == UUID.Zero)
if (roleID.IsZero())
{
m_log.DebugFormat("[Groups]: Attempt at deleting Everyone role from group {0} denied", groupID);
return;
@@ -527,7 +527,7 @@ namespace OpenSim.Groups
public bool RemoveAgentFromGroupRole(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
{
// Don't remove from Everyone role!
if (RoleID == UUID.Zero)
if (RoleID.IsZero())
return false;
// check permissions