Skip to content

Commit

Permalink
Emit inject_allowed after a timeout of 0 (#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTank committed May 20, 2023
1 parent 115f1e9 commit cc9a38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function createBot (options = {}) {
bot.version = version.minecraftVersion
options.version = version.minecraftVersion
bot.supportFeature = bot.registry.supportFeature
bot.emit('inject_allowed')
setTimeout(() => bot.emit('inject_allowed'), 0)
}
return bot
}

0 comments on commit cc9a38b

Please sign in to comment.