mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-05 18:19:38 +01:00
Fixed an issue causing auto sell items to be read wrong.
This commit is contained in:
parent
946fc996a4
commit
18c8ed0056
@ -86,7 +86,7 @@ public class ModuleAutoSell extends Module {
|
||||
value = 0;
|
||||
}
|
||||
} else
|
||||
value = Settings.AUTOSELL_PRICES.getStringList().stream().filter(line -> Material.valueOf(line.split(",")[0]) == itemStack.getType()).findFirst()
|
||||
value = Settings.AUTOSELL_PRICES.getStringList().stream().filter(line -> CompatibleMaterial.valueOf(line.split(",")[0]) == CompatibleMaterial.getMaterial(itemStack)).findFirst()
|
||||
.map(s -> Double.valueOf(s.split(",")[1])).orElse(0.0);
|
||||
|
||||
if (value <= 0) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user