mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-10 04:31:28 +01:00
Fix for default prices.
This commit is contained in:
parent
b1c0512e18
commit
86052094d0
@ -18,6 +18,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
public class ModuleAutoSell implements Module {
|
public class ModuleAutoSell implements Module {
|
||||||
|
|
||||||
@ -63,8 +64,8 @@ public class ModuleAutoSell implements Module {
|
|||||||
value = 0;
|
value = 0;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
value = Double.valueOf(list.stream().filter(line -> Material.valueOf(line.split(",")[0])
|
value = list.stream().filter(line -> Material.valueOf(line.split(",")[0])
|
||||||
== itemStack.getType()).findFirst().orElse("0"));
|
== itemStack.getType()).findFirst().map(s -> Double.valueOf(s.split(",")[1])).orElse(0.0);
|
||||||
|
|
||||||
if (value == 0) continue;
|
if (value == 0) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user