Skip to content

Commit

Permalink
fix(InGameHudMixin): update params
Browse files Browse the repository at this point in the history
  • Loading branch information
DataM0del committed Dec 22, 2024
1 parent 6f54f7f commit 6e7c7b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/info/opensigma/mixin/InGameHudMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import info.opensigma.OpenSigma;
import info.opensigma.event.impl.render.Render2DEvent;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.hud.InGameHud;
import net.minecraft.client.render.RenderTickCounter;
import net.minecraft.client.util.math.MatrixStack;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -12,7 +14,7 @@
@Mixin(InGameHud.class)
public class InGameHudMixin {
@Inject(method = "render", at = @At("TAIL"))
private void onRender(MatrixStack matrices, float tickDelta, CallbackInfo ci) {
OpenSigma.getInstance().getEventBus().post(new Render2DEvent(matrices, tickDelta));
private void onRender(DrawContext context, RenderTickCounter tickCounter, CallbackInfo ci) {
OpenSigma.getInstance().getEventBus().post(new Render2DEvent(context.getMatrices(), tickCounter.getTickDelta(true)));
}
}

0 comments on commit 6e7c7b3

Please sign in to comment.