mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Remove usage of Linden packet types from inside Attachments Module and interface
This commit is contained in:
@@ -360,8 +360,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
|
||||
public void RezMultipleAttachmentsFromInventory(
|
||||
IClientAPI remoteClient,
|
||||
RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header,
|
||||
RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects)
|
||||
List<KeyValuePair<UUID, uint>> rezlist)
|
||||
{
|
||||
if (!Enabled)
|
||||
return;
|
||||
@@ -380,9 +379,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
{
|
||||
// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing multiple attachments from inventory for {0}", sp.Name);
|
||||
|
||||
foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in objects)
|
||||
foreach (KeyValuePair<UUID, uint> rez in rezlist)
|
||||
{
|
||||
RezSingleAttachmentFromInventory(sp, obj.ItemID, obj.AttachmentPt);
|
||||
RezSingleAttachmentFromInventory(sp, rez.Key, rez.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -941,4 +940,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user