From aca2272703e2f30ff69e4c28d41dfa2d91be0964 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Sun, 20 Nov 2022 23:07:45 +1100 Subject: Added repo parserer for the draconic table thingy (#365) --- .../io/github/moulberry/notenoughupdates/util/ItemUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java index 6cc1bbe7..3e2dd465 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java @@ -417,4 +417,13 @@ public class ItemUtils { line.equals("§8§l* Soulbound §8§l*")); } + public static String fixDraconicId(String id) { + if (id.equals("ASPECT_OF_THE_DRAGONS")) return "ASPECT_OF_THE_DRAGON"; + if (id.equals("ENDER_HELMET")) return "END_HELMET"; + if (id.equals("ENDER_CHESTPLATE")) return "END_CHESTPLATE"; + if (id.equals("ENDER_LEGGINGS")) return "END_LEGGINGS"; + if (id.equals("ENDER_BOOTS")) return "END_BOOTS"; + return id; + } + } -- cgit