aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2023-07-16 12:03:51 +0200
committerCow <cow@volloeko.de>2023-07-16 12:03:51 +0200
commitf30851154f185fba3ce8877fa2ee17894844003d (patch)
tree46047f50f640d385dc24beddc076a1599a80456a /src/main/java/de
parent23444c26af9821b249f88576c32e83a49524c504 (diff)
downloadCowlection-f30851154f185fba3ce8877fa2ee17894844003d.tar.gz
Cowlection-f30851154f185fba3ce8877fa2ee17894844003d.tar.bz2
Cowlection-f30851154f185fba3ce8877fa2ee17894844003d.zip
Fixed Bazaar items left to buy/sell
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java b/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
index b6f05eb..21fa20d 100644
--- a/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
+++ b/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
@@ -479,8 +479,8 @@ public class SkyBlockListener {
// bazaar: show how many items left on offer/order
if (MooConfig.bazaarShowItemsLeft) {
String displayName = e.itemStack.getDisplayName();
- if (displayName.startsWith("" + EnumChatFormatting.GOLD + EnumChatFormatting.BOLD + "SELL" + EnumChatFormatting.GRAY + ":")
- || displayName.startsWith("" + EnumChatFormatting.GREEN + EnumChatFormatting.BOLD + "BUY" + EnumChatFormatting.GRAY + ":")) {
+ if (displayName.startsWith("" + EnumChatFormatting.GOLD + EnumChatFormatting.BOLD + "SELL")
+ || displayName.startsWith("" + EnumChatFormatting.GREEN + EnumChatFormatting.BOLD + "BUY")) {
int targetAmount = -1; // order/offer amount
List<String> toolTip = e.toolTip;
for (int lineNr = 2; lineNr < Math.min(5, toolTip.size()); lineNr++) {