aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
index cefb6929..c4768b3e 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
@@ -184,6 +184,9 @@ public abstract class TextOverlay {
for (String s2 : s.split("\n")) {
Vector2f pos = new Vector2f(x + paddingX, y + paddingY + yOff);
renderLine(s2, pos, dummy);
+ if (s2.startsWith("CUSTOM")) {
+ s2 = s2.split(":", 2)[1];
+ }
int xPad = (int) pos.x;
int yPad = (int) pos.y;