mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
add some filters for NPCs
This commit is contained in:
@@ -1047,6 +1047,10 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
/// <param name="remote_client">The object representing the client</param>
|
||||
public void SendParcelOverlay(IClientAPI remote_client)
|
||||
{
|
||||
|
||||
if (remote_client.SceneAgent.PresenceType == PresenceType.Npc)
|
||||
return;
|
||||
|
||||
const int LAND_BLOCKS_PER_PACKET = 1024;
|
||||
|
||||
byte[] byteArray = new byte[LAND_BLOCKS_PER_PACKET];
|
||||
|
||||
@@ -244,6 +244,9 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
|
||||
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client)
|
||||
{
|
||||
if (remote_client.SceneAgent.PresenceType == PresenceType.Npc)
|
||||
return;
|
||||
|
||||
IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>();
|
||||
uint regionFlags = 336723974 & ~((uint)(RegionFlags.AllowLandmark | RegionFlags.AllowSetHome));
|
||||
if (estateModule != null)
|
||||
|
||||
Reference in New Issue
Block a user