aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-03-04 13:20:20 -0500
committerbowser0000 <bowser0000@gmail.com>2022-03-04 13:20:20 -0500
commit2b57ccad6d21b325c3164117fe14e00e13399a7c (patch)
treeba0d560ed179fa3eb412996ac55ea3c920c2d88d /src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java
parent42b556c49db4d848cddca76b383135dcdaad99fa (diff)
downloadSkyblockMod-2b57ccad6d21b325c3164117fe14e00e13399a7c.tar.gz
SkyblockMod-2b57ccad6d21b325c3164117fe14e00e13399a7c.tar.bz2
SkyblockMod-2b57ccad6d21b325c3164117fe14e00e13399a7c.zip
Add CH fishing tracker
Organized change display GUI Add method to make centered text rendering easier
Diffstat (limited to 'src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java')
-rw-r--r--src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java b/src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java
index a3d0452..2331ec0 100644
--- a/src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java
+++ b/src/main/java/me/Danker/gui/crystalhollowwaypoints/CrystalHollowWaypointsGui.java
@@ -7,6 +7,7 @@ import me.Danker.gui.DankerGui;
import me.Danker.gui.buttons.FeatureButton;
import me.Danker.handlers.ConfigHandler;
import me.Danker.handlers.TextRenderer;
+import me.Danker.utils.RenderUtils;
import me.Danker.utils.Utils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
@@ -94,8 +95,7 @@ public class CrystalHollowWaypointsGui extends GuiScreen {
super.drawScreen(mouseX, mouseY, partialTicks);
String pageText = "Page: " + page + "/" + (int) Math.ceil(allButtons.size() / 7D);
- int pageWidth = mc.fontRendererObj.getStringWidth(pageText);
- new TextRenderer(mc, pageText, width / 2 - pageWidth / 2, 10, 1D);
+ RenderUtils.drawCenteredText(pageText, width, 10, 1D);
}
@Override