From ee352ebc7971fbb62319da53c520304bda5a15a2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 11 May 2008 04:32:43 +0000 Subject: * Added NPCModule and NPCAvatar classes for NPCs. Primitive, but we can grow them out. * Fix for Scene.Inventory.cs - It assumes every entity at startup is a SceneObjectGroup. (Actually, this shouldn't have compiled[!] without a warning.) * Fix for LandManager at startup - it assumes there's a land channel when perhaps there isnt. (Bug that needs another refactor to fix. [Mike - I've assigned a ticket to you about this]) --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 043d337..466b20a 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -410,7 +410,14 @@ namespace OpenSim.Region.Environment.Scenes RegisterToEvents(); SetDirectionVectors(); - m_scene.LandChannel.SendLandUpdate(this, true); + try + { + m_scene.LandChannel.SendLandUpdate(this, true); + } //BUG: Mike - please fix this. + catch (KeyNotFoundException) + { + m_log.Warn("[LAND]: Bug triggered with NPC. LandModule needs a refactor to fix this."); + } } public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, byte[] visualParams, -- cgit v1.1