Fix async logging bugs.

This commit is contained in:
2021-05-05 21:09:51 -07:00
parent 8d854945e1
commit 09e10e94b5
3 changed files with 16 additions and 7 deletions

View File

@ -14,9 +14,9 @@ export default class Player extends Container {
this.items.push(item);
}
look(): void {
async look(): Promise<void> {
const description = super.description(this.items);
this.#user.tell(`You have ${description}`);
await this.#user.tell(`You have ${description}`);
}
}