diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt index 11a51749e..23e5d4754 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt @@ -23,13 +23,14 @@ class AuctionHouseCopyUnderbidPrice { val internalName = item.getInternalName() if (internalName == NEUInternalName.NONE) return - val price = internalName.getPrice().toLong() - 1 + val price = internalName.getPrice().toLong() if (price <= 0) { OSUtils.copyToClipboard("") return } - OSUtils.copyToClipboard("$price") - LorenzUtils.chat("Set §e${price.addSeparators()} §eto clipboard. (Copy Underbid Price)") + val newPrice = price * item.stackSize - 1 + OSUtils.copyToClipboard("$newPrice") + LorenzUtils.chat("Set §e${newPrice.addSeparators()} §eto clipboard. (Copy Underbid Price)") } fun isEnabled() = LorenzUtils.inSkyBlock && config.copyUnderbidPrice |