Skip to content

Commit

Permalink
Update to 24w44a
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Oct 30, 2024
1 parent d4969a1 commit 1b17f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.InGameOverlayRenderer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.util.math.MatrixStack;
import net.wurstclient.WurstClient;

@Mixin(InGameOverlayRenderer.class)
public class InGameOverlayRendererMixin
{
@ModifyConstant(
method = "renderFireOverlay(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/util/math/MatrixStack;)V",
method = "renderFireOverlay(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;)V",
constant = @Constant(floatValue = -0.3F))
private static float getFireOffset(float original)
{
Expand All @@ -32,10 +33,11 @@ private static float getFireOffset(float original)
}

@Inject(at = @At("HEAD"),
method = "renderUnderwaterOverlay(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/util/math/MatrixStack;)V",
method = "renderUnderwaterOverlay(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;)V",
cancellable = true)
private static void onRenderUnderwaterOverlay(MinecraftClient client,
MatrixStack matrices, CallbackInfo ci)
MatrixStack matrices, VertexConsumerProvider vertexConsumerProvider,
CallbackInfo ci)
{
if(WurstClient.INSTANCE.getHax().noOverlayHack.isEnabled())
ci.cancel();
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
],
"accessWidener": "wurst.accesswidener",
"depends": {
"fabricloader": ">=0.16.3",
"fabric-api": ">=0.105.3",
"minecraft": "~1.21.2-alpha.24.40.a",
"fabricloader": ">=0.16.9",
"fabric-api": ">=0.107.0",
"minecraft": "~1.21.4-alpha.24.44.a",
"java": ">=21"
},
"suggests": {
Expand Down

0 comments on commit 1b17f8a

Please sign in to comment.