a few changes to EstateDataRemoteConnector, LoadEstateSettings can not be fatal so work around it

This commit is contained in:
UbitUmarov
2024-09-22 23:37:42 +01:00
parent 00c0816275
commit a9be42a304
5 changed files with 65 additions and 86 deletions

View File

@@ -194,19 +194,16 @@ namespace OpenSim.Server.Handlers
if (!string.IsNullOrEmpty(region))
{
UUID regionID = UUID.Zero;
if (UUID.TryParse(region, out regionID))
if (UUID.TryParse(region, out UUID regionID))
{
string create = (string)httpRequest.Query["create"];
bool createYN = false;
Boolean.TryParse(create, out createYN);
bool.TryParse(create, out bool createYN);
estate = m_EstateService.LoadEstateSettings(regionID, createYN);
}
}
else if (!string.IsNullOrEmpty(eid))
{
int id = 0;
if (Int32.TryParse(eid, out id))
if (int.TryParse(eid, out int id))
estate = m_EstateService.LoadEstateSettings(id);
}