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 --- CHANGELOG.md | 5 +++++ .../de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7c4db..e71b817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [1.8.9-0.16.0] - unreleased +### Fixed +- Bazaar: fixed "Show items left to buy/sell" not working anymore + ## [1.8.9-0.15.1] - 22.12.2022 ### Fixed - Fixed Dungeons Party Finder player lookup when someone joins a party @@ -403,6 +407,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). *Note:* The 'best friends' list is currently available via ESC > Mod Options > Cowlection > Config > bestFriends. +[1.8.9-0.16.0]: https://github.com/cow-mc/Cowlection/compare/v1.8.9-0.15.1...master [1.8.9-0.15.1]: https://github.com/cow-mc/Cowlection/compare/v1.8.9-0.15.0...v1.8.9-0.15.1 [1.8.9-0.15.0]: https://github.com/cow-mc/Cowlection/compare/v1.8.9-0.14.0...v1.8.9-0.15.0 [1.8.9-0.14.0]: https://github.com/cow-mc/Cowlection/compare/v1.8.9-0.13.0...v1.8.9-0.14.0 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