aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-12 16:26:49 +0200
committerGitHub <noreply@github.com>2022-09-12 16:26:49 +0200
commit996b42013330944403684b4a127015e5b04c6295 (patch)
tree9f2413c43787053fa734c34dfad4b0727f6b0890
parent16fedc90309a898bc709eaadc944fd047300fd0d (diff)
downloadNotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.tar.gz
NotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.tar.bz2
NotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.zip
Fix bazaar item sack (#271)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java4
1 files changed, 4 insertions, 0 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 7007f39b..9ab85390 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
@@ -103,6 +103,10 @@ public class BazaarSacksProfit {
.getItemInformation()
.entrySet()) {
String internalName = entry.getKey();
+
+ // Ignoring builder melon, builder clay and builder cactus
+ if (NotEnoughUpdates.INSTANCE.manager.auctionManager.getBazaarInfo(internalName) == null) continue;
+
JsonObject object = entry.getValue();
if (object.has("displayname")) {
String name = object.get("displayname").getAsString();