From 2f0c352849ec84e53676f62be27a1c9e92210441 Mon Sep 17 00:00:00 2001 From: alexia Date: Sun, 24 Dec 2023 23:15:30 +0100 Subject: Make vacuum bag show 40+ instead of 40 when capped (#830) Make vacuum bag show 40+ instead of 40 when capped #830 --- .../hannibal2/skyhanni/config/features/inventory/InventoryConfig.java | 2 +- .../hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java index 1478df3ad..80ee50233 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java @@ -115,7 +115,7 @@ public class InventoryConfig { } @Expose - @ConfigOption(name = " Vacuum Bag Cap", desc = "Capping the Garden Vacuum Bag item number display to 40.") + @ConfigOption(name = " Vacuum Bag Cap", desc = "Cap the Garden Vacuum Bag item number display to 40.") @ConfigEditorBoolean public boolean vacuumBagCap = true; diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt index df57ca7dc..a72a6b58b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt @@ -207,7 +207,7 @@ object ItemDisplayOverlayFeatures { gardenVacuumPatterm.matchMatcher(line) { val pests = group("amount").formatNumber() return if (config.vacuumBagCap) { - if (pests > 39) "§640" else "$pests" + if (pests > 39) "§640+" else "$pests" } else { when { pests < 40 -> "$pests" -- cgit