mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
c# sugar...
This commit is contained in:
@@ -164,12 +164,11 @@ namespace OpenSim.Groups
|
||||
|
||||
void OnCompleteMovementToRegion(IClientAPI client, bool arg2)
|
||||
{
|
||||
ScenePresence sp = client.SceneAgent as ScenePresence;
|
||||
if (sp is not null)
|
||||
if (client.SceneAgent is ScenePresence sp)
|
||||
{
|
||||
if (sp.PresenceType != PresenceType.Npc)
|
||||
{
|
||||
AgentCircuitData aCircuit = ((ScenePresence)sp).Scene.AuthenticateHandler.GetAgentCircuitData(client.AgentId);
|
||||
AgentCircuitData aCircuit = sp.Scene.AuthenticateHandler.GetAgentCircuitData(client.AgentId);
|
||||
if (aCircuit != null && (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0 &&
|
||||
m_OfflineIM != null && m_Messaging != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user