From a243144a9802e569ef2ee31dce5379c2f2ba3951 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 31 Dec 2023 20:48:45 +0100 Subject: [PATCH] Remove incorrect signals + change server. (#361) Makes it work. --- config.json | 2 +- index.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.json b/config.json index 05bc6538f..a64c1d73d 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "defaultHost": "pjs.deptofcraft.com", + "defaultHost": "kaboom.pw", "defaultHostPort": 25565, "defaultProxy": "", "defaultProxyPort": 0, diff --git a/index.js b/index.js index 027ce4dde..8a5358ab0 100644 --- a/index.js +++ b/index.js @@ -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,