Update to 1.21.3

This commit is contained in:
Moulberry committed 2024-11-14 03:55:01 +01:00
1 parent bc06f67861
commit 8c02fd7430
56 files changed
+609 -573

No files matched your search

@@ -4,7 +4,6 @@ import imgui.ImGui;
import imgui.ImGuiStyle;
import imgui.flag.ImGuiCol;
import net.minecraft.client.Minecraft;
import net.minecraft.util.FastColor;
import org.lwjgl.glfw.GLFW;
public class ReplayUIDefaults {
@@ -94,7 +93,7 @@ public class ReplayUIDefaults {
green = Math.min(0xFF, green * percentage/100);
red = Math.min(0xFF, red * percentage/100);
return FastColor.ABGR32.color(alpha, blue, green, red);
return alpha << 24 | blue << 16 | green << 8 | red;
}
private static int darken(int abgr) {
@@ -107,7 +106,7 @@ public class ReplayUIDefaults {
green = Math.min(0xFF, green * 4/5);
red = Math.min(0xFF, red * 4/5);
return FastColor.ABGR32.color(alpha, blue, green, red);
return alpha << 24 | blue << 16 | green << 8 | red;
}
}
@@ -138,11 +138,6 @@ public class VisualsWindow {
if (ImGui.checkbox("Override Fog Colour", visuals.overrideFogColour)) {
visuals.overrideFogColour = !visuals.overrideFogColour;
if (visuals.overrideFogColour) {
visuals.fogColour[0] = FogRenderer.fogRed;
visuals.fogColour[1] = FogRenderer.fogGreen;
visuals.fogColour[2] = FogRenderer.fogBlue;
}
editorState.markDirty();
}
if (visuals.overrideFogColour) {