Skip to content

Commit

Permalink
🐛 Fix text on config screen not rendering (Forge/NeoForge)
Browse files Browse the repository at this point in the history
  • Loading branch information
Autovw committed Nov 5, 2024
1 parent e49d0f0 commit 6fc4060
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.minecraft.network.chat.*;
import net.minecraft.util.FormattedCharSequence;

//import javax.annotation.Nullable;
import java.util.List;

/**
Expand Down Expand Up @@ -63,10 +62,10 @@ protected void init()
public void render(GuiGraphics graphics, int mouseX, int mouseY, float ticks)
{
this.renderBackground(graphics, mouseX, mouseY, ticks);
super.render(graphics, mouseX, mouseY, ticks);
graphics.drawCenteredString(this.font, this.title, this.width / 2, 7, 0xFFFFFF);
drawCenteredSplitString(graphics, this.font, this.font.split(getDescriptionTop(), this.width), this.width / 2, 55, 0xFFFFFF);
drawCenteredSplitString(graphics, this.font, this.font.split(getDescriptionBottom(), this.width), this.width / 2, 90, 0xFFFFFF);
super.render(graphics, mouseX, mouseY, ticks);
}

/**
Expand Down Expand Up @@ -109,7 +108,6 @@ public Component getDescriptionBottom()
* The URL behind the instructions button. Return null to disable this button.
* @return Instructions url
*/
//@Nullable
public String getInstructionsUrl()
{
return "https://github.com/Autovw/AdvancedNetherite/wiki/Configuration";
Expand Down

0 comments on commit 6fc4060

Please sign in to comment.