File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { BlockBreak } from "./rendering/BlockBreak.js";
1414import { BlockPlace } from "./rendering/BlockPlace.js" ;
1515import { EventHandler } from "./EventHandler.js" ;
1616import { Socket } from "./Socket.js" ;
17+ import proxy from "./proxy/proxy.worker.js" ;
1718
1819async function Setup ( game ) {
1920 return new Promise ( ( resolve ) => {
@@ -36,6 +37,7 @@ async function Setup(game) {
3637 game . stats . showPanel ( 0 ) ;
3738 document . body . appendChild ( game . stats . dom ) ;
3839 game . distanceBasedFog = new DistanceBasedFog ( game ) ;
40+ new proxy ( ) ;
3941 UrlParams ( game ) . then ( ( password ) => {
4042 $ ( ".loadingText" ) . text ( `Connecting to ${ game . server } ...` ) ;
4143 console . warn ( gpuInfo ( ) ) ;
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import swal from "sweetalert";
44import { AssetLoader } from "./AssetLoader.js" ;
55import { Setup } from "./Setup.js" ;
66
7- console . log ( window . mineflayer ) ;
8-
97class Game {
108 constructor ( ) {
119 this . production = PRODUCTION ;
Original file line number Diff line number Diff line change 1+ global . window = { } ;
2+ global . importScripts ( "../../assets/mineflayer.js" ) ;
3+ console . log ( window . mineflayer ) ;
You can’t perform that action at this time.
0 commit comments