diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-21 12:22:11 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-21 12:22:11 +0100 |
commit | c341ba399ccc23695ab7c7a7e02b68dd48332269 (patch) | |
tree | 189582dac74f5a512377a8333aba151fb7150d18 /src/main/java/at | |
parent | 5de98b869c621f71a389f1aae2175547a83926bc (diff) | |
download | skyhanni-c341ba399ccc23695ab7c7a7e02b68dd48332269.tar.gz skyhanni-c341ba399ccc23695ab7c7a7e02b68dd48332269.tar.bz2 skyhanni-c341ba399ccc23695ab7c7a7e02b68dd48332269.zip |
Fixed ah copy underbid price
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/AuctionHouseCopyUnderbidPrice.kt | 5 |
1 files changed, 4 insertions, 1 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 0f2a45659..11a51749e 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 @@ -24,7 +24,10 @@ class AuctionHouseCopyUnderbidPrice { if (internalName == NEUInternalName.NONE) return val price = internalName.getPrice().toLong() - 1 - if (price <= 0) return + if (price <= 0) { + OSUtils.copyToClipboard("") + return + } OSUtils.copyToClipboard("$price") LorenzUtils.chat("Set §e${price.addSeparators()} §eto clipboard. (Copy Underbid Price)") } |