This commit is contained in:
eaglercraft 2024-09-26 22:34:10 -07:00
commit d50d01b735
23 changed files with 311 additions and 42 deletions

View file

@ -1347,7 +1347,7 @@ public class Minecraft implements IThreadListener {
int j = Mouse.getEventDWheel();
if (j != 0) {
if (this.isZoomKey) {
this.adjustedZoomValue = MathHelper.clamp_float(adjustedZoomValue - j * 4.0f, 5.0f,
this.adjustedZoomValue = MathHelper.clamp_float(adjustedZoomValue - j * 4.0f, 4.0f,
32.0f);
} else if (this.thePlayer.isSpectator()) {
j = j < 0 ? -1 : 1;

View file

@ -211,6 +211,7 @@ public class GameSettings {
public boolean enableProfanityFilter = false;
public boolean hasShownProfanityFilter = false;
public float touchControlOpacity = 1.0f;
public boolean hideDefaultUsernameWarning = false;
public int voiceListenRadius = 16;
public float voiceListenVolume = 0.5f;
@ -1072,6 +1073,10 @@ public class GameSettings {
touchControlOpacity = parseFloat(astring[1]);
}
if (astring[0].equals("hideDefaultUsernameWarning")) {
this.hideDefaultUsernameWarning = astring[1].equals("true");
}
deferredShaderConf.readOption(astring[0], astring[1]);
} catch (Exception var8) {
logger.warn("Skipping bad option: " + s);
@ -1213,6 +1218,7 @@ public class GameSettings {
printwriter.println("screenRecordGameVolume:" + this.screenRecordGameVolume);
printwriter.println("screenRecordMicVolume:" + this.screenRecordMicVolume);
printwriter.println("touchControlOpacity:" + this.touchControlOpacity);
printwriter.println("hideDefaultUsernameWarning:" + this.hideDefaultUsernameWarning);
for (KeyBinding keybinding : this.keyBindings) {
printwriter.println("key_" + keybinding.getKeyDescription() + ":" + keybinding.getKeyCode());