Remove incorrect signals + change server. (#361)

Makes it work.
This commit is contained in:
Romain Beaumont 2023-12-31 20:48:45 +01:00 committed by GitHub
parent 17548409c1
commit a243144a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{
"defaultHost": "pjs.deptofcraft.com",
"defaultHost": "kaboom.pw",
"defaultHostPort": 25565,
"defaultProxy": "",
"defaultProxyPort": 0,

View file

@ -179,13 +179,9 @@ async function connect (options) {
const errorAbortController = new AbortController()
window.addEventListener('unhandledrejection', (e) => {
handleError(e.reason)
}, {
signal: errorAbortController
})
window.addEventListener('error', (e) => {
handleError(e.message)
}, {
signal: errorAbortController.signal
})
const bot = mineflayer.createBot({
host,