add GetLocalRegionByName to GridServicesConnector plus cosmetics

This commit is contained in:
UbitUmarov
2024-09-21 00:41:25 +01:00
parent fcddf631ce
commit 3823940205
5 changed files with 498 additions and 527 deletions

View File

@@ -71,7 +71,6 @@ namespace OpenSim.Region.ClientStack.LindenCaps
lock (m_scenes)
m_scenes.Remove(scene);
scene.EventManager.OnRegisterCaps -= RegisterCaps;
scene = null;
}
public void RegionLoaded(Scene scene)
@@ -79,8 +78,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps
scene.EventManager.OnRegisterCaps += RegisterCaps;
ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface<ISimulatorFeaturesModule>();
if(simFeatures != null)
simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true));
simFeatures?.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true));
}