diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-23 22:44:00 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-23 22:44:00 +0200 |
commit | 1da03c015142820b0632a3e7f9658f0d8884d7de (patch) | |
tree | 43e1e2afcf079323d574325a745741f71497c702 | |
parent | 8fa1d7f459bda49f47115f2bf1136b6f18af79fa (diff) | |
download | skyhanni-1da03c015142820b0632a3e7f9658f0d8884d7de.tar.gz skyhanni-1da03c015142820b0632a3e7f9658f0d8884d7de.tar.bz2 skyhanni-1da03c015142820b0632a3e7f9658f0d8884d7de.zip |
Re-enabled missing bazaar data warning
-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 } |