Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 3bc62ae

Browse files
committed
fix a mixin on 1.16 versions
1 parent 8dcdc98 commit 3bc62ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

1.16.5/src/main/java/io/github/axolotlclient/mixin/InGameHudMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
import net.minecraft.client.MinecraftClient;
3636
import net.minecraft.client.font.TextRenderer;
3737
import net.minecraft.client.gui.hud.InGameHud;
38-
import net.minecraft.client.util.Window;
3938
import net.minecraft.client.util.math.MatrixStack;
39+
import net.minecraft.entity.Entity;
4040
import net.minecraft.scoreboard.ScoreboardObjective;
4141
import net.minecraft.text.StringVisitable;
4242
import net.minecraft.text.Text;
@@ -222,7 +222,7 @@ public abstract class InGameHudMixin {
222222
}
223223

224224
@Inject(method = "renderVignetteOverlay", at = @At("HEAD"), cancellable = true)
225-
private void axolotlclient$removeVignette(float f, Window window, CallbackInfo ci){
225+
private void axolotlclient$removeVignette(Entity entity, CallbackInfo ci){
226226
if(AxolotlClient.CONFIG.removeVignette.get()){
227227
ci.cancel();
228228
}

1.16_combat-6/src/main/java/io/github/axolotlclient/mixin/InGameHudMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
import net.minecraft.client.MinecraftClient;
3636
import net.minecraft.client.font.TextRenderer;
3737
import net.minecraft.client.gui.hud.InGameHud;
38-
import net.minecraft.client.util.Window;
3938
import net.minecraft.client.util.math.MatrixStack;
39+
import net.minecraft.entity.Entity;
4040
import net.minecraft.scoreboard.ScoreboardObjective;
4141
import net.minecraft.text.StringVisitable;
4242
import net.minecraft.text.Text;
@@ -222,7 +222,7 @@ public abstract class InGameHudMixin {
222222
}
223223

224224
@Inject(method = "renderVignetteOverlay", at = @At("HEAD"), cancellable = true)
225-
private void axolotlclient$removeVignette(float f, Window window, CallbackInfo ci){
225+
private void axolotlclient$removeVignette(Entity entity, CallbackInfo ci){
226226
if(AxolotlClient.CONFIG.removeVignette.get()){
227227
ci.cancel();
228228
}

0 commit comments

Comments
 (0)