Fixed an issue causing auto sell items to be read wrong.

This commit is contained in:
Brianna 2020-10-01 14:17:57 -05:00
parent 946fc996a4
commit 18c8ed0056

View File

@ -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;