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