mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
minor: small message adjustment and unnecessary code elimination when notifying client of no build permission
This commit is contained in:
@@ -938,7 +938,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||
ILandObject land = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||
remoteClient.SendAlertMessage(string.Format(
|
||||
"Can't rez object '{0}' at <{1:F3}, {2:F3}, {3:F3}> on parcel '{4}' in region {5}.",
|
||||
item.Name, pos.X, pos.Y, pos.Z, land != null ? land.LandData.Name : "Unknow", m_Scene.RegionInfo.RegionName));
|
||||
item.Name, pos.X, pos.Y, pos.Z, land != null ? land.LandData.Name : "Unknown", m_Scene.RegionInfo.RegionName));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1978,7 +1978,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
else
|
||||
{
|
||||
IClientAPI client = null;
|
||||
if (this.TryGetClient(ownerID, out client))
|
||||
if (TryGetClient(ownerID, out client))
|
||||
client.SendAlertMessage("You cannot create objects here.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user