Skip to content

Commit d50d01b

Browse files
author
eaglercraft
committed
u39
1 parent 57e37a7 commit d50d01b

File tree

23 files changed

+311
-42
lines changed

23 files changed

+311
-42
lines changed

CompileJS.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@echo off
2-
title gradlew generateJavascript
3-
gradlew generateJavascript
1+
@echo off
2+
title gradlew generateJavascript
3+
call gradlew generateJavascript
44
pause

EAGLERCRAFTX_README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ The default eaglercraftXOpts values is this:
196196
- `eaglerNoDelay:` can be used to disable "Vigg's Algorithm", an algorithm that delays and combines multiple EaglercraftX packets together if they are sent in the same tick (does not affect regular Minecraft 1.8 packets)
197197
- `ramdiskMode:` if worlds and resource packs should be stored in RAM instead of IndexedDB
198198
- `singleThreadMode:` if the game should run the client and integrated server in the same context instead of creating a worker object
199+
- `enableEPKVersionCheck:` if the game should attempt to bypass the browser's cache and retry downloading assets.epk when its outdated
199200
- `hooks:` can be used to define JavaScript callbacks for certain events
200201
* `localStorageSaved:` JavaScript callback to save local storage keys (key, data)
201202
* `localStorageLoaded:` JavaScript callback to load local storage keys (key) returns data
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
u39

desktopRuntime/resources/assets/eagler/boot_menu/opts_template_eaglercraftX_1_8.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
"disableBlobURLs": false,
6363
"eaglerNoDelay": false,
6464
"ramdiskMode": false,
65-
"singleThreadMode": false
65+
"singleThreadMode": false,
66+
"enableEPKVersionCheck": true
6667
}

desktopRuntime/resources/assets/eagler/boot_menu/opts_template_eaglercraftX_1_8_demo.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
"disableBlobURLs": false,
6363
"eaglerNoDelay": false,
6464
"ramdiskMode": false,
65-
"singleThreadMode": false
65+
"singleThreadMode": false,
66+
"enableEPKVersionCheck": true
6667
}

desktopRuntime/resources/assets/eagler/boot_menu/opts_template_eaglercraftX_1_8_html5Cursors.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
"disableBlobURLs": false,
6363
"eaglerNoDelay": false,
6464
"ramdiskMode": false,
65-
"singleThreadMode": false
65+
"singleThreadMode": false,
66+
"enableEPKVersionCheck": true
6667
}

desktopRuntime/resources/assets/minecraft/lang/en_US.lang

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ eaglercraft.editCape.clearCape=Clear List
4949

5050
eaglercraft.editProfile.importExport=Import/Export
5151

52+
eaglercraft.defaultUsernameDetected.title=Default Username Detected
53+
eaglercraft.defaultUsernameDetected.text0=The username "%s" was auto-generated by Eaglercraft
54+
eaglercraft.defaultUsernameDetected.text1=It may already be taken on the largest servers
55+
eaglercraft.defaultUsernameDetected.text2=Would you like to pick a different username instead?
56+
eaglercraft.defaultUsernameDetected.changeUsername=Change Username
57+
eaglercraft.defaultUsernameDetected.continueAnyway=Continue Anyway
58+
eaglercraft.defaultUsernameDetected.doNotShow=Do not show again
59+
5260
eaglercraft.settingsBackup.importExport.title=What do you wanna do?
5361
eaglercraft.settingsBackup.importExport.import=Import Profile and Settings...
5462
eaglercraft.settingsBackup.importExport.export=Export Profile and Settings...

src/game/java/net/minecraft/client/Minecraft.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ public String call() throws Exception {
13471347
int j = Mouse.getEventDWheel();
13481348
if (j != 0) {
13491349
if (this.isZoomKey) {
1350-
this.adjustedZoomValue = MathHelper.clamp_float(adjustedZoomValue - j * 4.0f, 5.0f,
1350+
this.adjustedZoomValue = MathHelper.clamp_float(adjustedZoomValue - j * 4.0f, 4.0f,
13511351
32.0f);
13521352
} else if (this.thePlayer.isSpectator()) {
13531353
j = j < 0 ? -1 : 1;

src/game/java/net/minecraft/client/settings/GameSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public class GameSettings {
211211
public boolean enableProfanityFilter = false;
212212
public boolean hasShownProfanityFilter = false;
213213
public float touchControlOpacity = 1.0f;
214+
public boolean hideDefaultUsernameWarning = false;
214215

215216
public int voiceListenRadius = 16;
216217
public float voiceListenVolume = 0.5f;
@@ -1072,6 +1073,10 @@ public void loadOptions(byte[] data) {
10721073
touchControlOpacity = parseFloat(astring[1]);
10731074
}
10741075

1076+
if (astring[0].equals("hideDefaultUsernameWarning")) {
1077+
this.hideDefaultUsernameWarning = astring[1].equals("true");
1078+
}
1079+
10751080
deferredShaderConf.readOption(astring[0], astring[1]);
10761081
} catch (Exception var8) {
10771082
logger.warn("Skipping bad option: " + s);
@@ -1213,6 +1218,7 @@ public byte[] writeOptions() {
12131218
printwriter.println("screenRecordGameVolume:" + this.screenRecordGameVolume);
12141219
printwriter.println("screenRecordMicVolume:" + this.screenRecordMicVolume);
12151220
printwriter.println("touchControlOpacity:" + this.touchControlOpacity);
1221+
printwriter.println("hideDefaultUsernameWarning:" + this.hideDefaultUsernameWarning);
12161222

12171223
for (KeyBinding keybinding : this.keyBindings) {
12181224
printwriter.println("key_" + keybinding.getKeyDescription() + ":" + keybinding.getKeyCode());

src/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformInput.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,11 @@ public static int mouseGetEventY() {
479479
}
480480

481481
public static int mouseGetEventDWheel() {
482-
return (int)currentMouseEvent.wheel;
482+
return fixWheel(currentMouseEvent.wheel);
483+
}
484+
485+
private static int fixWheel(float val) {
486+
return (val > 0.0f ? 1 : (val < 0.0f ? -1 : 0));
483487
}
484488

485489
public static int mouseGetX() {

0 commit comments

Comments
 (0)