Skip to content

Commit

Permalink
Remove incorrect signals + change server. (#361)
Browse files Browse the repository at this point in the history
Makes it work.
  • Loading branch information
rom1504 authored Dec 31, 2023
1 parent 1754840 commit a243144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"defaultHost": "pjs.deptofcraft.com",
"defaultHost": "kaboom.pw",
"defaultHostPort": 25565,
"defaultProxy": "",
"defaultProxyPort": 0,
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a243144

Please sign in to comment.