diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt index f8f05845b..01f01015c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt @@ -103,7 +103,11 @@ internal class BazaarDataGrabber(private var bazaarMap: MutableMap<String, Bazaa 0.0 } - val itemName = getItemName(apiName) ?: continue + val itemName = getItemName(apiName) + if (itemName == null) { + LorenzUtils.warning("§c[SkyHanni] bazaar item '$apiName' not found! Try restarting your minecraft to fix this.") + continue + } val data = BazaarData(apiName, itemName, sellPrice, buyPrice) bazaarMap[itemName] = data } |