From f30851154f185fba3ce8877fa2ee17894844003d Mon Sep 17 00:00:00 2001 From: Cow Date: Sun, 16 Jul 2023 12:03:51 +0200 Subject: Fixed Bazaar items left to buy/sell --- .../de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 toolTip = e.toolTip; for (int lineNr = 2; lineNr < Math.min(5, toolTip.size()); lineNr++) { -- cgit