aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-18 17:47:52 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-18 17:47:52 +0200
commitbb9ff71de7f7db3e45e47a6b79a9e4419e0bc630 (patch)
tree769ff97e62c113b9ae95c2f90747c6362acc5ab9 /src/main/java
parentcbdbc5f2901d7bb7eeb568cdf530ccf4a64e2f0b (diff)
downloadNotEnoughUpdates-bb9ff71de7f7db3e45e47a6b79a9e4419e0bc630.tar.gz
NotEnoughUpdates-bb9ff71de7f7db3e45e47a6b79a9e4419e0bc630.tar.bz2
NotEnoughUpdates-bb9ff71de7f7db3e45e47a6b79a9e4419e0bc630.zip
Do not display rawcraftcost if its at 0
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
index 1bca2a84..83c4b7ae 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java
@@ -105,6 +105,7 @@ public class ItemPriceInformation {
break;
case 4:
if(craftCost.fromRecipe) {
+ if((int)craftCost.craftCost == 0){ continue;}
if(!added) {
tooltip.add("");
added = true;
@@ -172,6 +173,7 @@ public class ItemPriceInformation {
break;
case 3:
if(craftCost.fromRecipe) {
+ if((int)craftCost.craftCost == 0){ continue;}
if(!added) {
tooltip.add("");
added = true;