fix single file build
This commit is contained in:
parent
1fe6239b44
commit
cd84acbe7a
1 changed files with 4 additions and 1 deletions
|
|
@ -8,6 +8,9 @@ import { ParsedServerAddress } from '../parseServerAddress'
|
|||
import { authFlowMainThread, getAuthData } from './microsoftAuthflow'
|
||||
import type { PROXY_WORKER_TYPE } from './protocol.worker'
|
||||
|
||||
//@ts-expect-error
|
||||
import ProtocolWorker from './protocol.worker.ts'
|
||||
|
||||
const debug = require('debug')('minecraft-protocol')
|
||||
|
||||
let protocolWorkerChannel: typeof PROXY_WORKER_TYPE['__workerProxy'] | undefined
|
||||
|
|
@ -49,7 +52,7 @@ export const getProtocolClientGetter = async (proxy: { host: string, port?: stri
|
|||
|
||||
createClientOptions.sessionServer = authData?.sessionEndpoint.toString()
|
||||
|
||||
const worker = new Worker(new URL('./protocol.worker.ts', import.meta.url))
|
||||
const worker = new ProtocolWorker()
|
||||
protocolWorkerChannel = useWorkerProxy<typeof PROXY_WORKER_TYPE>(worker)
|
||||
setTimeout(() => {
|
||||
if (bot) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue