1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00

MineXLauncher 1.4

This commit is contained in:
zumbiepig
2024-08-16 22:04:25 -07:00
committed by GitHub
parent a2d0beadb8
commit ce45a2a411
331 changed files with 2937626 additions and 46548 deletions

View File

@@ -0,0 +1,25 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: 'game_frame',
assetsURI: 'assets.epk',
servers: [
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
],
relays: [
{ addr: 'wss://relay.deev.is/', comment: 'lax1dude relay #1', primary: relayId == 0 },
{ addr: 'wss://relay.lax1dude.net/', comment: 'lax1dude relay #2', primary: relayId == 1 },
{ addr: 'wss://relay.shhnowisnottheti.me/', comment: 'ayunami relay #1', primary: relayId == 2 },
],
};
const urlParams = new URLSearchParams(window.location.search);
const server = urlParams.get('server');
if (server) {
window.eaglercraftXOpts.joinServer = server;
}
main();
});