diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/GenshinConsentScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/GenshinConsentScreen.java index ddc4572..48a708b 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/GenshinConsentScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/GenshinConsentScreen.java @@ -4,9 +4,9 @@ import java.util.List; import com.cstav.genshinstrument.client.config.ModClientConfigs; +import com.mojang.blaze3d.vertex.PoseStack; import net.minecraft.ChatFormatting; -import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.screens.Screen; import net.minecraft.client.gui.screens.multiplayer.WarningScreen; @@ -92,8 +92,8 @@ protected void init() { } @Override - protected void renderTitle(GuiGraphics gui) { - gui.drawCenteredString(font, title, width/2, 30, Color.WHITE.getRGB()); + protected void renderTitle(PoseStack stack) { + drawCenteredString(stack, font, title, width/2, 30, Color.WHITE.getRGB()); }