Skip to content

Commit

Permalink
Update openVillager function (PrismarineJS#2330)
Browse files Browse the repository at this point in the history
* Update openVillager function

openVillager returns a Promise

* Remove pointless (?) line

* trigger GitHub actions
  • Loading branch information
amoraschi authored Dec 5, 2021
1 parent eeefab5 commit d9a0686
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export interface Bot extends TypedEmitter<BotEvents> {

openVillager: (
villager: Entity
) => Villager
) => Promise<Villager>

trade: (
villagerInstance: Villager,
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/villager.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function inject (bot, { version }) {
if (!ready) {
ready = true
villager.emit('ready')
console.log('emit ready')
}
}
}
Expand Down

0 comments on commit d9a0686

Please sign in to comment.