diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-04-27 18:09:47 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 10:09:47 +0200 |
| commit | 18ea34b92d6106afda3b662256a2dc36dd4d8ec0 (patch) | |
| tree | 019eeeaeefabf5e6c02b2617096fe1280d3b6cc0 /src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java | |
| parent | 9a96a10de435e0959f20f44d452e6bb89f664ced (diff) | |
| download | notenoughupdates-18ea34b92d6106afda3b662256a2dc36dd4d8ec0.tar.gz notenoughupdates-18ea34b92d6106afda3b662256a2dc36dd4d8ec0.tar.bz2 notenoughupdates-18ea34b92d6106afda3b662256a2dc36dd4d8ec0.zip | |
Fix Hex overriding bz and added icons to new gemstones in /hex (#1119)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java index ab871888..11e0dc6d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java @@ -219,6 +219,10 @@ public class HexItem { if (itemName.contains("Amber Gemstone")) this.itemType = ItemType.AMBER_GEMSTONE; if (itemName.contains("Opal Gemstone")) this.itemType = ItemType.OPAL_GEMSTONE; if (itemName.contains("Topaz Gemstone")) this.itemType = ItemType.TOPAZ_GEMSTONE; + if (itemName.contains("Onyx Gemstone")) this.itemType = ItemType.ONYX_GEMSTONE; + if (itemName.contains("Aquamarine Gemstone")) this.itemType = ItemType.AQUAMARINE_GEMSTONE; + if (itemName.contains("Citrine Gemstone")) this.itemType = ItemType.CITRINE_GEMSTONE; + if (itemName.contains("Peridot Gemstone")) this.itemType = ItemType.PERIDOT_GEMSTONE; if (itemName.contains("Gemstone Slot")) this.itemType = ItemType.GEMSTONE_SLOT; if (this.itemName.contains(" Gemstone")) { this.itemName = this.itemName.replace(" Gemstone", "").substring(2); @@ -293,7 +297,9 @@ public class HexItem { return itemType == ItemType.RUBY_GEMSTONE || itemType == ItemType.AMETHYST_GEMSTONE || itemType == ItemType.SAPPHIRE_GEMSTONE || itemType == ItemType.JASPER_GEMSTONE || itemType == ItemType.JADE_GEMSTONE || itemType == ItemType.AMBER_GEMSTONE || - itemType == ItemType.OPAL_GEMSTONE || itemType == ItemType.TOPAZ_GEMSTONE; + itemType == ItemType.OPAL_GEMSTONE || itemType == ItemType.TOPAZ_GEMSTONE || + itemType == ItemType.ONYX_GEMSTONE || itemType == ItemType.AQUAMARINE_GEMSTONE || + itemType == ItemType.CITRINE_GEMSTONE || itemType == ItemType.PERIDOT_GEMSTONE; } public boolean isEnrichment() { |
