Apply suggestions from code review

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
Bénédicte Q 2022-01-03 14:21:59 +01:00 committed by GitHub
parent 7c34e0a435
commit 5d0aa835a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 15 deletions

View file

@ -101,8 +101,8 @@ The player's current position is available using the `WA.player.getPosition()` f
You need to wait for the end of the initialization before calling `WA.player.getPosition()`
```typescript
WA.onInit().then(() => {
console.log('Position: ', WA.player.getPosition());
WA.onInit().then(async () => {
console.log('Position: ', await WA.player.getPosition());
})
```