mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2024-11-24 16:47:52 -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,
|
"defaultHostPort": 25565,
|
||||||
"defaultProxy": "",
|
"defaultProxy": "",
|
||||||
"defaultProxyPort": 0,
|
"defaultProxyPort": 0,
|
||||||
|
|
4
index.js
4
index.js
|
@ -179,13 +179,9 @@ async function connect (options) {
|
||||||
const errorAbortController = new AbortController()
|
const errorAbortController = new AbortController()
|
||||||
window.addEventListener('unhandledrejection', (e) => {
|
window.addEventListener('unhandledrejection', (e) => {
|
||||||
handleError(e.reason)
|
handleError(e.reason)
|
||||||
}, {
|
|
||||||
signal: errorAbortController
|
|
||||||
})
|
})
|
||||||
window.addEventListener('error', (e) => {
|
window.addEventListener('error', (e) => {
|
||||||
handleError(e.message)
|
handleError(e.message)
|
||||||
}, {
|
|
||||||
signal: errorAbortController.signal
|
|
||||||
})
|
})
|
||||||
const bot = mineflayer.createBot({
|
const bot = mineflayer.createBot({
|
||||||
host,
|
host,
|
||||||
|
|
Loading…
Reference in a new issue