mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
This enables return from the parcel object owner display.
There's some oddness with the parcel counts, but if you can get past the oddness, you can return objects under an owner that you have permission to return.
This commit is contained in:
@@ -902,7 +902,17 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
|
||||
public void handleParcelObjectOwnersRequest(int local_id, IClientAPI remote_client)
|
||||
{
|
||||
landList[local_id].sendLandObjectOwners(remote_client);
|
||||
lock (landList)
|
||||
{
|
||||
if (landList.ContainsKey(local_id))
|
||||
{
|
||||
landList[local_id].sendLandObjectOwners(remote_client);
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Console.WriteLine("[PARCEL]: Invalid land object passed for parcel object owner request");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void handleParcelAbandonRequest(int local_id, IClientAPI remote_client)
|
||||
@@ -1004,6 +1014,24 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
AddLandObject(new_land);
|
||||
}
|
||||
|
||||
public void ReturnObjectsInParcel(int localID, uint returnType, LLUUID[] agentIDs, LLUUID[] taskIDs, IClientAPI remoteClient)
|
||||
{
|
||||
ILandObject selectedParcel = null;
|
||||
lock (landList)
|
||||
{
|
||||
if (landList.ContainsKey(localID))
|
||||
selectedParcel = landList[localID];
|
||||
}
|
||||
if (selectedParcel == null)
|
||||
return;
|
||||
|
||||
if (returnType == 16) // parcel return
|
||||
{
|
||||
selectedParcel.returnLandObjects(returnType, agentIDs, remoteClient);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void NoLandDataFromStorage()
|
||||
{
|
||||
ResetSimLandObjects();
|
||||
|
||||
Reference in New Issue
Block a user