mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-26 20:26:19 +01:00
Don't process less than 0 for auto sell.
This commit is contained in:
parent
0dcc22be4e
commit
ad250acd1b
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user