cosmetics

This commit is contained in:
UbitUmarov
2020-09-01 18:22:44 +01:00
parent 323c0673c2
commit eae2f87cae
7 changed files with 80 additions and 72 deletions

View File

@@ -1081,7 +1081,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
so.AttachedAvatar = sp.UUID;
so.AttachmentPoint = attachmentpoint;
so.RootPart.AttachedPos = attachOffset;
so.AbsolutePosition = attachOffset;
so.RootPart.GroupPosition = attachOffset; // can not set absolutepos
so.IsAttachment = true;
sp.AddAttachment(so);
@@ -1099,7 +1099,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
// scene that it's no longer in their awareness.
m_scene.ForEachClient(
client =>
{ if (client.AgentId != so.AttachedAvatar)
{ if (client.IsActive && client.AgentId != so.AttachedAvatar)
client.SendKillObject(new List<uint>() { so.LocalId });
});
}