Skip to content

Commit

Permalink
Fix object selectin/deselection (more)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMettam committed Nov 22, 2023
1 parent 4ec867f commit b755182
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions lib/classes/commands/RegionCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class RegionCommands extends CommandsBase
const selectList: GameObject[] = [];
for (let y = 0; y < selectLimit; y++)
{
if (y < objects.length)
if (x + y < objects.length)
{
selectList.push(objects[x + y]);
}
Expand Down Expand Up @@ -276,7 +276,7 @@ export class RegionCommands extends CommandsBase
const selectList: GameObject[] = [];
for (let y = 0; y < selectLimit; y++)
{
if (y < objects.length)
if (x + y < objects.length)
{
selectList.push(objects[x + y]);
}
Expand Down Expand Up @@ -382,10 +382,14 @@ export class RegionCommands extends CommandsBase

for (const obj of objects)
{
if (obj.resolvedAt === undefined || obj.name === undefined)
{
obj.resolveAttempts++;
}
if (!(obj instanceof GameObject))
{
continue;
}
if (obj.resolvedAt === undefined || obj.name === undefined)
{
obj.resolveAttempts++;
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caspertech/node-metaverse",
"version": "0.7.14",
"version": "0.7.15",
"description": "A node.js interface for Second Life.",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down

0 comments on commit b755182

Please sign in to comment.