aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2023-03-04 03:03:33 +0100
committerGitHub <noreply@github.com>2023-03-04 13:03:33 +1100
commit5a79ff410eb64e906c555751b32bef87cc7caee9 (patch)
treef2c2e40a7cca305959b04d2dfba99ebc3e822949 /src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java
parent5dd063fbba6bde64806a7620541dc2d9bdf42871 (diff)
downloadnotenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.tar.gz
notenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.tar.bz2
notenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.zip
I hate FontRenderer. (#612)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java
index ac96f527..30907836 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/NEUOverlayPlacements.java
@@ -74,14 +74,7 @@ public class NEUOverlayPlacements extends GuiScreen {
drawRect((width - 176) / 2, (height - 166) / 2,
(width + 176) / 2, (height + 166) / 2, new Color(100, 100, 100, 200).getRGB()
);
- Utils.drawStringCentered(
- GOLD + "Inventory",
- Minecraft.getMinecraft().fontRendererObj,
- width / 2f,
- height / 2f,
- false,
- 0
- );
+ Utils.drawStringCentered(GOLD + "Inventory", width / 2f, height / 2f, false, 0);
MBGuiGroupFloating mainGroup = NotEnoughUpdates.INSTANCE.overlay.guiGroup;
mainGroup.render(0, 0);
@@ -145,7 +138,8 @@ public class NEUOverlayPlacements extends GuiScreen {
}
if (anchorPoint.inventoryRelative) {
- Utils.drawStringCentered(GOLD + "Inv-Relative", Minecraft.getMinecraft().fontRendererObj,
+ Utils.drawStringCentered(
+ GOLD + "Inv-Relative",
position.x + element.getWidth() * 0.5f, position.y + element.getHeight() * 0.5f, false, 0
);
}