aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-30 21:43:43 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-30 21:43:49 +0200
commit0c6cd3695ff2b78e11fe6457a31dc8c7575330ff (patch)
treea53514e16e33657fcba072e60a3ef89c532c5e99 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
parent90ad79d106fd36f50edaf8a2bed6c4ee0210050d (diff)
downloadnotenoughupdates-0c6cd3695ff2b78e11fe6457a31dc8c7575330ff.tar.gz
notenoughupdates-0c6cd3695ff2b78e11fe6457a31dc8c7575330ff.tar.bz2
notenoughupdates-0c6cd3695ff2b78e11fe6457a31dc8c7575330ff.zip
Add Support for pets with special levelling systems
Like the golden Dragon pet
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java2
1 files changed, 1 insertions, 1 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 7769c274..5313afd9 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
@@ -1018,7 +1018,7 @@ public class PetInfoOverlay extends TextOverlay {
JsonObject petsJson = Constants.PETS;
if(currentPet != null && petsJson != null) {
- currentPet.petLevel = GuiProfileViewer.getPetLevel(petsJson.get("pet_levels").getAsJsonArray(), currentPet.rarity.petOffset, currentPet.petLevel.totalXp);
+ currentPet.petLevel = GuiProfileViewer.getPetLevel(currentPet.petItem, currentPet.rarity.name(), currentPet.petLevel.totalXp);
}
}