mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 08:34:48 +00:00
commit
49dcc0910e
File diff suppressed because one or more lines are too long
@ -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.
Binary file not shown.
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user