Use array index access instead of .at (#889)

## Description:

Use array index access instead of `.at` to try to fix a user-reported
erorr.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
Scott Anderson
2025-05-27 12:39:35 -04:00
committed by GitHub
parent e8834e15e6
commit cd523515f5
+1 -1
View File
@@ -41,7 +41,7 @@ export class EmojiExecution implements Execution {
}
tick(ticks: number): void {
const emojiString = flattenedEmojiTable.at(this.emoji);
const emojiString = flattenedEmojiTable[this.emoji];
if (emojiString === undefined) {
consolex.warn(
`cannot send emoji ${this.emoji} from ${this.requestor} to ${this.recipient}`,