aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
index d4df7bfd..a8d69c87 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
@@ -787,8 +787,10 @@ public class RenderListener {
if (bazaarPrice < 5000000 && internal.equals("RECOMBOBULATOR_3000")) bazaarPrice = 5000000;
double worth = -1;
- if (bazaarPrice > 0) {
+ boolean isOnBz = false;
+ if (bazaarPrice >= 0) {
worth = bazaarPrice;
+ isOnBz = true;
} else {
switch (NotEnoughUpdates.INSTANCE.config.dungeons.profitType) {
case 1:
@@ -826,7 +828,7 @@ public class RenderListener {
}
}
- if (worth > 0 && totalValue >= 0) {
+ if ((worth >= 0 || isOnBz) && totalValue >= 0) {
totalValue += worth;
String display = item.getDisplayName();