diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-11-20 23:07:45 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 23:07:45 +1100 |
| commit | aca2272703e2f30ff69e4c28d41dfa2d91be0964 (patch) | |
| tree | 22b0230ce9e327a575894bac17ead3039748eebd /src/main/java/io/github/moulberry/notenoughupdates/util | |
| parent | c7989c3a139ebf058c816f1312c29b7b4ef293b3 (diff) | |
| download | notenoughupdates-aca2272703e2f30ff69e4c28d41dfa2d91be0964.tar.gz notenoughupdates-aca2272703e2f30ff69e4c28d41dfa2d91be0964.tar.bz2 notenoughupdates-aca2272703e2f30ff69e4c28d41dfa2d91be0964.zip | |
Added repo parserer for the draconic table thingy (#365)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 9 |
1 files changed, 9 insertions, 0 deletions
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; + } + } |
