parent
f63b83b085
commit
e206a9ce88
|
@ -440,16 +440,12 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// <returns>null if there is no registered module implementing that interface</returns>
|
||||
public T RequestModuleInterface<T>()
|
||||
{
|
||||
if (ModuleInterfaces.ContainsKey(typeof(T)) && (ModuleInterfaces[typeof(T)].Count > 0))
|
||||
{
|
||||
m_log.Debug("[XXX] RequestModuleInterface " + typeof(T).ToString() + " size: " + ModuleInterfaces[typeof(T)].Count);
|
||||
if (ModuleInterfaces.ContainsKey(typeof(T)) &&
|
||||
(ModuleInterfaces[typeof(T)].Count > 0))
|
||||
return (T)ModuleInterfaces[typeof(T)][0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For the given interface, retrieve an array of region modules that implement it.
|
||||
|
|
Loading…
Reference in New Issue