Skip to content

Commit a243144

Browse files
authored
Remove incorrect signals + change server. (#361)
Makes it work.
1 parent 1754840 commit a243144

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"defaultHost": "pjs.deptofcraft.com",
2+
"defaultHost": "kaboom.pw",
33
"defaultHostPort": 25565,
44
"defaultProxy": "",
55
"defaultProxyPort": 0,

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,9 @@ async function connect (options) {
179179
const errorAbortController = new AbortController()
180180
window.addEventListener('unhandledrejection', (e) => {
181181
handleError(e.reason)
182-
}, {
183-
signal: errorAbortController
184182
})
185183
window.addEventListener('error', (e) => {
186184
handleError(e.message)
187-
}, {
188-
signal: errorAbortController.signal
189185
})
190186
const bot = mineflayer.createBot({
191187
host,

0 commit comments

Comments
 (0)