diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-12 16:26:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 16:26:49 +0200 |
commit | 996b42013330944403684b4a127015e5b04c6295 (patch) | |
tree | 9f2413c43787053fa734c34dfad4b0727f6b0890 /src/main/java | |
parent | 16fedc90309a898bc709eaadc944fd047300fd0d (diff) | |
download | NotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.tar.gz NotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.tar.bz2 NotEnoughUpdates-996b42013330944403684b4a127015e5b04c6295.zip |
Fix bazaar item sack (#271)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java | 4 |
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(); |