diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/GardenComposterInventoryFeatures.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/GardenComposterInventoryFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/GardenComposterInventoryFeatures.kt index 538b971e9..a85b73363 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/GardenComposterInventoryFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/GardenComposterInventoryFeatures.kt @@ -44,7 +44,13 @@ class GardenComposterInventoryFeatures { LorenzUtils.error("§c[SkyHanni] Could not read item '$line'") continue } - val lowestBin = NEUItems.getPrice(NEUItems.getInternalName(itemName)) + val internalName = NEUItems.getInternalNameOrNull(itemName) + if (internalName == null) { + LorenzUtils.chat("§c[SkyHanni] Error reading internal name for item '$itemName' " + + "(in GardenComposterInventoryFeatures)") + continue + } + val lowestBin = NEUItems.getPrice(internalName) val price = lowestBin * amount fullPrice += price val format = NumberUtil.format(price) |