Prevents filters from matching non-reforge-able materials

This commit is contained in:
Kristian Knarvik 2023-01-09 15:25:05 +01:00
parent a5ae3cb295
commit 913cc5736e

View File

@ -229,7 +229,7 @@ public enum SmithPreset {
*/
private List<Material> getMaterialsEndingWith(String end) {
List<Material> matchedMaterials = new ArrayList<>();
for (Material material : Material.values()) {
for (Material material : ItemHelper.getAllReforgeAbleMaterials()) {
if (!material.name().startsWith("LEGACY") && material.name().endsWith(end)) {
matchedMaterials.add(material);
}