diff options
| -rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/item/ItemRarityBackgrounds.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/ItemRarityBackgrounds.java b/src/main/java/de/hysky/skyblocker/skyblock/item/ItemRarityBackgrounds.java index 87b35af3..ca29db16 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/item/ItemRarityBackgrounds.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/item/ItemRarityBackgrounds.java @@ -91,10 +91,11 @@ public class ItemRarityBackgrounds { } } else { PetInfo info = stack.getPetInfo(); - SkyblockItemRarity rarity = info.rarity(); - - CACHE.put(hashCode, rarity); - return rarity; + if (!info.isEmpty()) { + SkyblockItemRarity rarity = info.rarity(); + CACHE.put(hashCode, rarity); + return rarity; + } } CACHE.put(hashCode, null); |
