mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2024-11-21 10:48:24 -05:00
parent
17548409c1
commit
a243144a98
2 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"defaultHost": "pjs.deptofcraft.com",
|
||||
"defaultHost": "kaboom.pw",
|
||||
"defaultHostPort": 25565,
|
||||
"defaultProxy": "",
|
||||
"defaultProxyPort": 0,
|
||||
|
|
4
index.js
4
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,
|
||||
|
|
Loading…
Reference in a new issue