mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
fix/simplify validation of god_data update field
This commit is contained in:
@@ -198,12 +198,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void SetState(OSD state)
|
||||
{
|
||||
if(state == null)
|
||||
return;
|
||||
|
||||
OSDMap s = (OSDMap)state;
|
||||
|
||||
if (s.ContainsKey("ViewerUiIsGod"))
|
||||
m_viewerUiIsGod = s["ViewerUiIsGod"].AsBoolean();
|
||||
|
||||
SyncViewerState();
|
||||
}
|
||||
|
||||
public int UserLevel
|
||||
|
||||
Reference in New Issue
Block a user