diff --git a/public/game/web/main/1.2.5/index.html b/public/game/web/main/1.2.5/index.html
index d2d3ab3..e099dfc 100644
--- a/public/game/web/main/1.2.5/index.html
+++ b/public/game/web/main/1.2.5/index.html
@@ -6,6 +6,7 @@
diff --git a/public/game/web/main/a1.2.6/index.html b/public/game/web/main/a1.2.6/index.html
index 69b1d33..2cee46a 100644
--- a/public/game/web/main/a1.2.6/index.html
+++ b/public/game/web/main/a1.2.6/index.html
@@ -14,6 +14,7 @@
gameContainer: 'game_frame',
assetsLocation: '/game/web/main/a1.2.6/resources.mc',
};
+ history.replaceState({}, '', '/');
main();
});
diff --git a/public/game/web/main/b1.7.3/index.html b/public/game/web/main/b1.7.3/index.html
index 2b336d9..dd94d79 100644
--- a/public/game/web/main/b1.7.3/index.html
+++ b/public/game/web/main/b1.7.3/index.html
@@ -14,6 +14,7 @@
gameContainer: 'game_frame',
assetsLocation: '/game/web/main/b1.7.3/resources.mc',
};
+ history.replaceState({}, '', '/');
main();
});
diff --git a/public/game/web/main/classic/index.html b/public/game/web/main/classic/index.html
index 7c381de..38a7265 100644
--- a/public/game/web/main/classic/index.html
+++ b/public/game/web/main/classic/index.html
@@ -11,6 +11,7 @@
diff --git a/public/game/web/main/indev/index.html b/public/game/web/main/indev/index.html
index 87c7b45..bef7417 100644
--- a/public/game/web/main/indev/index.html
+++ b/public/game/web/main/indev/index.html
@@ -11,6 +11,7 @@
diff --git a/public/game/web/main/infdev/index.html b/public/game/web/main/infdev/index.html
index e1c611b..a65c49b 100644
--- a/public/game/web/main/infdev/index.html
+++ b/public/game/web/main/infdev/index.html
@@ -11,6 +11,7 @@
diff --git a/src/resources/scripts/eagler-launch/1.5.2/main.ts b/src/resources/scripts/eagler-launch/1.5.2/main.ts
index d7ef662..cac67f0 100644
--- a/src/resources/scripts/eagler-launch/1.5.2/main.ts
+++ b/src/resources/scripts/eagler-launch/1.5.2/main.ts
@@ -3,37 +3,25 @@ window.addEventListener('load', function () {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftOpts = {
container: 'game_frame',
- assetsURI: 'assets.epk',
- serverWorkerURI: 'worker_bootstrap.js',
+ assetsURI: `${window.location.pathname}/assets.epk`,
+ localesURI: `${window.location.pathname}/lang/`,
+ serverWorkerURI: `${window.location.pathname}/worker_bootstrap.js`,
worldsFolder: 'MAIN',
- servers: [
- { serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false },
- ],
+ servers: [{ serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false }],
relays: [
{ addr: 'wss://relay.deev.is/', name: 'lax1dude relay #1', primary: relayId === 0 },
{ addr: 'wss://relay.lax1dude.net/', name: 'lax1dude relay #2', primary: relayId === 1 },
{ addr: 'wss://relay.shhnowisnottheti.me/', name: 'ayunami relay #1', primary: relayId === 2 },
],
mainMenu: {
- splashes: [
- 'Darviglet!',
- 'eaglerenophile!',
- 'You Eagler!',
- 'Yeeeeeee!',
- 'yeee',
- 'EEEEEEEEE!',
- 'You Darvig!',
- 'You Vigg!',
- ':>',
- '|>',
- 'You Yumpster!'
- ],
- eaglerLogo: false
+ splashes: ['Darviglet!', 'eaglerenophile!', 'You Eagler!', 'Yeeeeeee!', 'yeee', 'EEEEEEEEE!', 'You Darvig!', 'You Vigg!', ':>', '|>', 'You Yumpster!'],
+ eaglerLogo: false,
},
};
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftOpts.joinServer = urlParams.get('server') ?? undefined;
+ history.replaceState({}, '', '/');
main();
});
diff --git a/src/resources/scripts/eagler-launch/1.8.8/eaglerforge.ts b/src/resources/scripts/eagler-launch/1.8.8/eaglerforge.ts
index c10194b..5de5c4d 100644
--- a/src/resources/scripts/eagler-launch/1.8.8/eaglerforge.ts
+++ b/src/resources/scripts/eagler-launch/1.8.8/eaglerforge.ts
@@ -3,7 +3,8 @@ window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: 'game_frame',
- assetsURI: 'assets.epk',
+ assetsURI: `${window.location.pathname}/assets.epk`,
+ localesURI: `${window.location.pathname}/lang/`,
servers: [
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
@@ -38,5 +39,6 @@ window.addEventListener('load', () => {
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
window.eaglercraftXOpts.Mods = storage.local.get('mods') ?? [];
+ history.replaceState({}, '', '/');
main();
});
diff --git a/src/resources/scripts/eagler-launch/1.8.8/main.ts b/src/resources/scripts/eagler-launch/1.8.8/main.ts
index 38e65a7..8f39169 100644
--- a/src/resources/scripts/eagler-launch/1.8.8/main.ts
+++ b/src/resources/scripts/eagler-launch/1.8.8/main.ts
@@ -3,7 +3,8 @@ window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: 'game_frame',
- assetsURI: 'assets.epk',
+ assetsURI: `${window.location.pathname}/assets.epk`,
+ localesURI: `${window.location.pathname}/lang/`,
servers: [
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
@@ -19,5 +20,6 @@ window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
+ history.replaceState({}, '', '/');
main();
});
diff --git a/src/resources/scripts/eagler-launch/1.9.4/main.ts b/src/resources/scripts/eagler-launch/1.9.4/main.ts
index 897cddf..7d4c331 100644
--- a/src/resources/scripts/eagler-launch/1.9.4/main.ts
+++ b/src/resources/scripts/eagler-launch/1.9.4/main.ts
@@ -3,7 +3,8 @@ window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: 'game_frame',
- assetsURI: 'assets.epk',
+ assetsURI: `${window.location.pathname}/assets.epk`,
+ localesURI: `${window.location.pathname}/lang/`,
servers: [{ addr: 'wss://eagler.xyz', name: 'TemuzX' }],
relays: [
{ addr: 'wss://relay.deev.is/', comment: 'lax1dude relay #1', primary: relayId === 0 },
@@ -15,5 +16,6 @@ window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
+ history.replaceState({}, '', '/');
main();
});
diff --git a/src/resources/scripts/eagler-launch/b1.3/main.ts b/src/resources/scripts/eagler-launch/b1.3/main.ts
index e670055..d21b3d9 100644
--- a/src/resources/scripts/eagler-launch/b1.3/main.ts
+++ b/src/resources/scripts/eagler-launch/b1.3/main.ts
@@ -1,12 +1,10 @@
// @ts-nocheck
window.addEventListener('load', function () {
- window.minecraftOpts = [
- 'game_frame',
- 'assets.epk'
- ];
+ window.minecraftOpts = ['game_frame', `${window.location.pathname}/assets.epk`];
const urlParams = new URLSearchParams(window.location.search);
window.minecraftOpts.push(urlParams.get('server') ?? undefined);
+ history.replaceState({}, '', '/');
main();
});