Don't process less than 0 for auto sell.

This commit is contained in:
Brianna 2020-04-20 09:10:58 -04:00
parent 0dcc22be4e
commit ad250acd1b

View File

@ -88,7 +88,7 @@ public class ModuleAutoSell extends Module {
value = Settings.AUTOSELL_PRICES.getStringList().stream().filter(line -> Material.valueOf(line.split(",")[0]) == itemStack.getType()).findFirst() value = Settings.AUTOSELL_PRICES.getStringList().stream().filter(line -> Material.valueOf(line.split(",")[0]) == itemStack.getType()).findFirst()
.map(s -> Double.valueOf(s.split(",")[1])).orElse(0.0); .map(s -> Double.valueOf(s.split(",")[1])).orElse(0.0);
if (value == 0) continue; if (value <= 0) continue;
double sellingFor = value * itemStack.getAmount(); double sellingFor = value * itemStack.getAmount();