bug fix: wrong enabled check
parent
56e3aaefde
commit
4b9c94a3aa
|
@ -349,9 +349,6 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
|||
if (!m_Enabled)
|
||||
return;
|
||||
|
||||
if(scene != m_scene)
|
||||
return;
|
||||
|
||||
m_scene.UnregisterModuleInterface<IPermissionsModule>(this);
|
||||
|
||||
scenePermissions.OnBypassPermissions -= BypassPermissions;
|
||||
|
|
|
@ -78,9 +78,8 @@ namespace OpenSim.Region.OptionalModules
|
|||
public void AddRegion(Scene scene)
|
||||
{
|
||||
if (!m_enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_scene = scene;
|
||||
scene.Permissions.OnRezObject += CanRezObject;
|
||||
scene.Permissions.OnObjectEntry += CanObjectEnter;
|
||||
|
@ -91,10 +90,8 @@ namespace OpenSim.Region.OptionalModules
|
|||
|
||||
public void RemoveRegion(Scene scene)
|
||||
{
|
||||
if (m_enabled)
|
||||
{
|
||||
if (!m_enabled)
|
||||
return;
|
||||
}
|
||||
|
||||
m_scene.Permissions.OnRezObject -= CanRezObject;
|
||||
m_scene.Permissions.OnObjectEntry -= CanObjectEnter;
|
||||
|
|
Loading…
Reference in New Issue