Minor changes to SimulatorFeatures

This commit is contained in:
cinder
2025-07-13 14:34:24 -05:00
parent 1b8bdc0f4f
commit 41a7e4fe2c

View File

@@ -37,7 +37,7 @@ namespace LibreMetaverse
public class SimulatorFeatures
{
private OSDMap _featureMap = new OSDMap();
private Simulator _simulator;
private readonly Simulator _simulator;
internal SimulatorFeatures(Simulator simulator)
{
@@ -51,11 +51,7 @@ namespace LibreMetaverse
/// <returns>true if feature exists and is true</returns>
public bool Has(string feature)
{
if (_featureMap.TryGetValue(feature, out var value))
{
return value.AsBoolean();
}
return false;
return _featureMap.TryGetValue(feature, out var value) && value.AsBoolean();
}
/// <summary>