Skip to content

Commit d1e249a

Browse files
committed
Merge remote-tracking branch 'upstream/master'
Merge
2 parents 30429f3 + be970ac commit d1e249a

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,18 @@ repositories {
2929
// Override vulnerable dependencies until Minecraft updates to newer versions
3030
configurations.all {
3131
resolutionStrategy {
32-
// v2.5.1, used by Minecraft 1.21.4 - 1.21.9, is vulnerable to CVE-2024-57699
32+
// v2.5.1, used by Minecraft 1.21.4 - 1.21.10, is vulnerable to CVE-2024-57699
3333
force "net.minidev:json-smart:2.5.2"
34-
// v2.13.4, used by Minecraft 1.21.4 - 1.21.9, is vulnerable to CVE-2025-52999
34+
// v2.13.4, used by Minecraft 1.21.4 - 1.21.10, is vulnerable to CVE-2025-52999
3535
force "com.fasterxml.jackson.core:jackson-core:2.15.0"
36-
// v3.17.0, used by Minecraft 1.21.4 - 1.21.9, is vulnerable to CVE-2025-48924
36+
// v3.17.0, used by Minecraft 1.21.4 - 1.21.10, is vulnerable to CVE-2025-48924
3737
force "org.apache.commons:commons-lang3:3.18.0"
38-
// v9.40, used by Minecraft 1.21.4 - 1.21.9, is vulnerable to CVE-2025-53864
38+
// v9.40, used by Minecraft 1.21.4 - 1.21.10, is vulnerable to CVE-2025-53864
3939
force "com.nimbusds:nimbus-jose-jwt:10.0.2"
40-
// v4.1.118.Final, used by Minecraft 1.21.5 - 1.21.9, is vulnerable to CVE-2025-58057
40+
// v4.1.118.Final, used by Minecraft 1.21.5 - 1.21.10, is vulnerable to CVE-2025-58057
4141
force "io.netty:netty-codec:4.1.125.Final"
42+
// v4.1.118.Final, used by Minecraft 1.21.5 - 1.21.10, is vulnerable to CVE-2025-58056
43+
force "io.netty:netty-codec-http:4.1.125.Final"
4244
}
4345
}
4446

src/main/java/net/wurstclient/mixin/GameRendererMixin.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1616
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
1717

18+
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
1819
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
1920
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
2021

21-
import net.minecraft.client.render.Camera;
2222
import net.minecraft.client.render.GameRenderer;
2323
import net.minecraft.client.render.RenderTickCounter;
2424
import net.minecraft.client.util.math.MatrixStack;
@@ -84,14 +84,12 @@ private void onRenderHand(float tickDelta, boolean bl, Matrix4f matrix4f,
8484
cancelNextBobView = false;
8585
}
8686

87-
@Inject(at = @At(value = "RETURN", ordinal = 1),
88-
method = "getFov(Lnet/minecraft/client/render/Camera;FZ)F",
89-
cancellable = true)
90-
private void onGetFov(Camera camera, float tickDelta, boolean changingFov,
91-
CallbackInfoReturnable<Float> cir)
87+
@ModifyReturnValue(at = @At("RETURN"),
88+
method = "getFov(Lnet/minecraft/client/render/Camera;FZ)F")
89+
private float onGetFov(float original)
9290
{
93-
cir.setReturnValue(WurstClient.INSTANCE.getOtfs().zoomOtf
94-
.changeFovBasedOnZoom(cir.getReturnValueF()));
91+
return WurstClient.INSTANCE.getOtfs().zoomOtf
92+
.changeFovBasedOnZoom(original);
9593
}
9694

9795
/**

src/main/java/net/wurstclient/mixin/IngameHudMixin.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
*/
88
package net.wurstclient.mixin;
99

10-
import org.spongepowered.asm.mixin.Final;
1110
import org.spongepowered.asm.mixin.Mixin;
12-
import org.spongepowered.asm.mixin.Shadow;
1311
import org.spongepowered.asm.mixin.injection.At;
1412
import org.spongepowered.asm.mixin.injection.Inject;
1513
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1614

1715
import net.minecraft.client.gui.DrawContext;
18-
import net.minecraft.client.gui.hud.DebugHud;
1916
import net.minecraft.client.gui.hud.InGameHud;
2017
import net.minecraft.client.render.RenderTickCounter;
2118
import net.minecraft.entity.Entity;
@@ -28,18 +25,14 @@
2825
@Mixin(InGameHud.class)
2926
public class IngameHudMixin
3027
{
31-
@Shadow
32-
@Final
33-
private DebugHud debugHud;
34-
3528
// runs after renderScoreboardSidebar()
3629
// and before playerListHud.setVisible()
3730
@Inject(at = @At("HEAD"),
3831
method = "renderPlayerList(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/render/RenderTickCounter;)V")
3932
private void onRenderPlayerList(DrawContext context,
4033
RenderTickCounter tickCounter, CallbackInfo ci)
4134
{
42-
if(debugHud.shouldShowDebugHud())
35+
if(WurstClient.MC.debugHudEntryList.isF3Enabled())
4336
return;
4437

4538
float tickDelta = tickCounter.getTickProgress(true);

0 commit comments

Comments
 (0)