Resolve temp-on-rez attachments

This commit is contained in:
Casper Warden
2023-11-21 14:33:12 +00:00
parent e7e790efff
commit 5151696e18
5 changed files with 9 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ export class ObjectResolver
const failed: GameObject[] = [];
for (const obj of objects)
{
if (!options.includeTempObjects && ((obj.Flags ?? 0) & PrimFlags.TemporaryOnRez))
if (!obj.IsAttachment && !options.includeTempObjects && ((obj.Flags ?? 0) & PrimFlags.TemporaryOnRez) === PrimFlags.TemporaryOnRez)
{
continue;
}
@@ -46,7 +46,7 @@ export class ObjectResolver
return failed;
}
return this.resolveQueue.add(Array.from(objs.values()));
return await this.resolveQueue.add(Array.from(objs.values()));
}
public async getInventory(object: GameObject): Promise<void>
@@ -183,7 +183,7 @@ export class ObjectResolver
obj.landImpact = Math.round(obj.linkResourceImpact);
}
obj.calculatedLandImpact = obj.landImpact;
if (obj.Flags !== undefined && obj.Flags & PrimFlags.TemporaryOnRez && obj.limitingType === 'legacy')
if (obj.Flags !== undefined && ((obj.Flags & PrimFlags.TemporaryOnRez) === PrimFlags.TemporaryOnRez) && obj.limitingType === 'legacy')
{
obj.calculatedLandImpact = 0;
}