Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/playerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ export const commands = commandList({
if(args.action) outputFail(`There is no recorded history for the selected region matching the provided filters.`);
else outputFail(`There is no recorded history for the selected region.`);
}
if(limitTiles == amount)
output(`Displaying first ${limitTiles} entries. To show other entries, increase the limit or select a smaller area.`);
if(limitTiles == amount){
output(`Displaying first ${limitTiles} entries. To show other entries, increase the limit or select a smaller area.`)
}
}
const p1 = cachedPointMap[sender.uuid];
if(!p1){
Expand All @@ -215,6 +216,8 @@ export const commands = commandList({
const height = Math.abs(p1[1] - p2[1]);
if(width > 50 || height > 50) fail("Selection too large: width/height cannot be more than 50.");
handleArea(p1, p2);
p1 = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't do anything. p1 is just a temporary variable. You need to modify cachedPointMap to clear the data

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e
11:30pm rn im under a blanket while typing on a phone
cuz my mom moved into mah room now (for reasons)

p2 = null;
if(!args.persist) handleTaps("off");
}
},
Expand Down
Loading