From df5972b57c2460f43434820fb3970d99df0162b8 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 26 Dec 2023 10:24:50 +0100 Subject: Add more custom icons to neu custom todos (#956) --- .../github/moulberry/notenoughupdates/overlays/TimersOverlay.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/main/java') 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": -- cgit