diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-16 10:24:01 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-16 10:24:01 -0500 |
commit | 2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3 (patch) | |
tree | 7e8fa4c3e6321d06c13d9ed198fad7c82e2345c9 /src/main/java/com/dulkirfabric/mixin | |
parent | 46e64e85b65d3a6d896f352a7b9de8323870c96d (diff) | |
download | DulkirMod-Fabric-2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3.tar.gz DulkirMod-Fabric-2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3.tar.bz2 DulkirMod-Fabric-2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3.zip |
Remove Scoreboard Numbers.
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin')
-rw-r--r-- | src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java b/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java index cd45aed..e192c59 100644 --- a/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java +++ b/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java @@ -1,11 +1,14 @@ package com.dulkirfabric.mixin.render; import com.dulkirfabric.config.DulkirConfig; +import net.minecraft.client.font.TextRenderer; import net.minecraft.client.gui.DrawContext; import net.minecraft.client.gui.hud.InGameHud; +import net.minecraft.scoreboard.ScoreboardObjective; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(InGameHud.class) @@ -17,4 +20,10 @@ public class InGameHudMixin { ci.cancel(); } } + + @Redirect(method = "renderScoreboardSidebar(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/scoreboard/ScoreboardObjective;)V", + at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawText(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;IIIZ)I")) + public int renderScoreBoardSidebar(DrawContext instance, TextRenderer textRenderer, String text, int x, int y, int color, boolean shadow) { + return 0; + } } |