diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-08 17:00:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-08 17:00:49 +0200 |
| commit | d3805f080af87eb2bc7d2a2eac6c3f8db539324f (patch) | |
| tree | 2aaf95a14d1cb82096c1c2d675ebe6b7147dab48 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java | |
| parent | 827acac6fcf836c1dba5bea338f726694951d18e (diff) | |
| download | notenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.tar.gz notenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.tar.bz2 notenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.zip | |
0.14 - Finished :) (#233)
Co-authored-by: nopo <noahogno@gmail.com>
Co-authored-by: jani270 <69345714+jani270@users.noreply.github.com>
Co-authored-by: Ascynx <78341107+Ascynx@users.noreply.github.com>
Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>
Co-authored-by: Lulonaut <lulonaut@tutanota.de>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java index 084fd03f..7007f39b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java @@ -68,7 +68,7 @@ public class BazaarSacksProfit { @SubscribeEvent(priority = EventPriority.LOW) public void onItemTooltipLow(ItemTooltipEvent event) { - if (!NotEnoughUpdates.INSTANCE.config.tooltipTweaks.bazaarSacksProfit) return; + if (!NotEnoughUpdates.INSTANCE.config.bazaarTweaks.bazaarSacksProfit) return; if (!inBazaar()) return; ItemStack itemStack = event.itemStack; @@ -89,6 +89,11 @@ public class BazaarSacksProfit { out: for (String line : ItemUtils.getLore(itemStack)) { + + if (line.equals("§8Loading...")) { + dirty = true; + return; + } if (line.contains("§7x ")) { String[] split = line.split("§7x "); String rawAmount = StringUtils.cleanColour(split[0]).replace(",", "").substring(1); @@ -108,7 +113,7 @@ public class BazaarSacksProfit { } } } - System.out.println("no bazaar item in repo found for '" + bazaarName + "'"); + System.err.println("no bazaar item in repo found for '" + bazaarName + "'"); invalidNames.add(bazaarName); } } |
