Skip to content

Commit

Permalink
Add unique annotation to renderText method
Browse files Browse the repository at this point in the history
  • Loading branch information
Grayray75 committed Apr 30, 2024
1 parent 767fcac commit 1690fe5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.minecraft.client.gui.hud.InGameHud;
import net.minecraft.client.util.math.MatrixStack;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
Expand Down Expand Up @@ -51,6 +52,7 @@ public void render(DrawContext context, float tickDelta, CallbackInfo info) {
}
}

@Unique
private void renderText(DrawContext context, TextRenderer textRenderer, String text, int x, int y, int color, float scale, boolean shadowed) {
if (scale != 1.0f) {
MatrixStack matrixStack = context.getMatrices();
Expand Down

0 comments on commit 1690fe5

Please sign in to comment.