diff options
| author | DoKM <mcazzyman@gmail.com> | 2021-08-30 21:43:43 +0200 |
|---|---|---|
| committer | DoKM <mcazzyman@gmail.com> | 2021-08-30 21:43:49 +0200 |
| commit | 0c6cd3695ff2b78e11fe6457a31dc8c7575330ff (patch) | |
| tree | a53514e16e33657fcba072e60a3ef89c532c5e99 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java | |
| parent | 90ad79d106fd36f50edaf8a2bed6c4ee0210050d (diff) | |
| download | notenoughupdates-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.java | 2 |
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); } } |
