1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 08:34:48 +00:00

Merge pull request #73 from zumbiepig/main

mereg
This commit is contained in:
zumbiepig 2024-09-10 06:59:16 -07:00 committed by GitHub
commit 49dcc0910e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 23 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
<script src="/game/web/clients/eaglerforge/ModGUI.js"></script>
<script src="/game/web/clients/eaglerforge/classes.js"></script>
<script src="/resources/scripts/eagler-launch/1.8.8/eaglermobile-ef.js"></script>
<script src="/resources/scripts/eagler-launch/1.8.8/eaglerforge.js"></script>
<script src="/resources/scripts/eagler-launch/1.8.8/main.js"></script>
</head>
<body id="game_frame"></body>
</html>

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,21 @@
// @ts-nocheck
const storage = {
local: {
get: function (key: string) {
const item = localStorage.getItem('minexlauncher');
if (item !== null) {
//const decoded = atob(item);
const json = JSON.parse(item);
if (json[key] !== undefined) {
return json[key];
}
return undefined;
}
return undefined;
},
},
};
window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
@ -6,6 +23,7 @@ window.addEventListener('load', () => {
assetsURI: `${window.location.pathname}/assets.epk`,
localesURI: `${window.location.pathname}/lang/`,
servers: [
{ addr: 'wss://webmc.xyz/server', name: 'WebMC OneBlock' },
{ addr: 'wss://mc.ricenetwork.xyz', name: 'Rice Network' },
{ addr: 'wss://mc.lamplifesteal.xyz', name: 'LampLifesteal' },
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
@ -32,6 +50,7 @@ window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
window.eaglercraftXOpts.mods = storage.local.get('mods') ?? [];
history.replaceState({}, '', '/play');
main();