aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorAscynx <78341107+Ascynx@users.noreply.github.com>2022-10-03 17:13:57 +0200
committerGitHub <noreply@github.com>2022-10-03 17:13:57 +0200
commit958525f42be1868c448246d4ffd15da77c0b0887 (patch)
tree89fe1664b5b8894338c3fe72773088c33f54427f /src/main/java/io
parent0c22b5eec932e2f916cbbcdbc4d5275b5eb3b6ba (diff)
downloadNotEnoughUpdates-958525f42be1868c448246d4ffd15da77c0b0887.tar.gz
NotEnoughUpdates-958525f42be1868c448246d4ffd15da77c0b0887.tar.bz2
NotEnoughUpdates-958525f42be1868c448246d4ffd15da77c0b0887.zip
Mythic tier skin. (#327)
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
index be66e9b3..a14c98e7 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
@@ -790,11 +790,14 @@ public class PetInfoOverlay extends TextOverlay {
if (!NotEnoughUpdates.INSTANCE.config.petOverlay.petOverlayIcon) return;
int mythicRarity = currentPet.rarity.petId;
- if (currentPet.rarity.petId == 5) {
- mythicRarity = 4;
- }
JsonObject petItem = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(
currentPet.skin != null ? currentPet.skin : (currentPet.petType + ";" + mythicRarity));
+
+ if (petItem == null && currentPet.rarity.petId == 5) {
+ petItem = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(
+ currentPet.skin != null ? currentPet.skin : (currentPet.petType + ";" + 4));
+ }
+
if (petItem != null) {
Vector2f position = getPosition(overlayWidth, overlayHeight);
int x = (int) position.x;