diff options
| author | BuildTools <james.jenour@protonmail.com> | 2021-02-23 20:07:27 +0800 |
|---|---|---|
| committer | BuildTools <james.jenour@protonmail.com> | 2021-02-23 20:07:27 +0800 |
| commit | 24aeb45f6e40ac0119b44735e816c64f25ac0ecc (patch) | |
| tree | 346b67a036c8bba6bee4fdd8bb4850637c165247 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java | |
| parent | 9ec720b7bde5e31681fe2f8605aac20560bd8516 (diff) | |
| download | notenoughupdates-24aeb45f6e40ac0119b44735e816c64f25ac0ecc.tar.gz notenoughupdates-24aeb45f6e40ac0119b44735e816c64f25ac0ecc.tar.bz2 notenoughupdates-24aeb45f6e40ac0119b44735e816c64f25ac0ecc.zip | |
charz
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java index 414ba42d..4a572110 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java @@ -53,13 +53,13 @@ public class ItemCooldowns { } public static long getTreecapCooldownWithPet(){ - if (NotEnoughUpdates.INSTANCE.config.itemOverlays.enableMonkeyCheck && PetInfoOverlay.currentPet != null) { - PetInfoOverlay.Pet pet = PetInfoOverlay.currentPet; + PetInfoOverlay.Pet pet = PetInfoOverlay.getCurrentPet(); + if (NotEnoughUpdates.INSTANCE.config.itemOverlays.enableMonkeyCheck && pet != null) { if (pet.petLevel != null && pet.petType.equalsIgnoreCase("monkey") && pet.rarity.equals(PetInfoOverlay.Rarity.LEGENDARY) ) { - return 2000 - (int) (2000 * (0.005 * (int) PetInfoOverlay.currentPet.petLevel.level)); + return 2000 - (int) (2000 * (0.005 * (int) pet.petLevel.level)); } } return 2000; |
