mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
replace godlevel compares by the new faster bool isViewerUIGod
This commit is contained in:
@@ -540,7 +540,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
}
|
||||
}
|
||||
|
||||
if (presence.IsDeleted || presence.IsChildAgent || presence.GodController.GodLevel > 0.0)
|
||||
if (presence.IsDeleted || presence.IsChildAgent || presence.isViewerUIGod)
|
||||
return;
|
||||
|
||||
// if the object the script is in is attached and the avatar is the owner
|
||||
|
||||
Reference in New Issue
Block a user