aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLinnea Gräf <roman.graef@gmail.com>2023-12-26 10:24:50 +0100
committerGitHub <noreply@github.com>2023-12-26 10:24:50 +0100
commitdf5972b57c2460f43434820fb3970d99df0162b8 (patch)
tree7107c1829da9fc2a553b7f1fb6ba34ae8e974d5a /src/main/java
parentaccf3c3124126db1232f7aee2b25000d6e5d6038 (diff)
downloadNotEnoughUpdates-df5972b57c2460f43434820fb3970d99df0162b8.tar.gz
NotEnoughUpdates-df5972b57c2460f43434820fb3970d99df0162b8.tar.bz2
NotEnoughUpdates-df5972b57c2460f43434820fb3970d99df0162b8.zip
Add more custom icons to neu custom todos (#956)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
index ca244303..cf111078 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
@@ -22,6 +22,7 @@ package io.github.moulberry.notenoughupdates.overlays;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.core.config.Position;
import io.github.moulberry.notenoughupdates.events.SlotClickEvent;
+import io.github.moulberry.notenoughupdates.miscgui.customtodos.CustomTodo;
import io.github.moulberry.notenoughupdates.miscgui.customtodos.CustomTodoHud;
import io.github.moulberry.notenoughupdates.options.NEUConfig;
import io.github.moulberry.notenoughupdates.util.ItemUtils;
@@ -174,11 +175,7 @@ public class TimersOverlay extends TextTabOverlay {
String clean = Utils.cleanColour(line);
String beforeColon = clean.split(":")[0];
if (beforeColon.startsWith("CUSTOM")) {
- var item = Item.getByNameOrId(beforeColon.substring(6));
- if (item == null) {
- item = Items.paper;
- }
- icon = new ItemStack(item);
+ icon = CustomTodoHud.INSTANCE.parseItem(CustomTodoHud.INSTANCE.decodeCustomItem(beforeColon));
} else
switch (beforeColon) {
case "Cakes":