From 913cc5736ed1bbaaf5d42c96721a4c236e5ad68d Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 9 Jan 2023 15:25:05 +0100 Subject: [PATCH] Prevents filters from matching non-reforge-able materials --- src/main/java/net/knarcraft/blacksmith/config/SmithPreset.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/blacksmith/config/SmithPreset.java b/src/main/java/net/knarcraft/blacksmith/config/SmithPreset.java index fb6b09e..22b4ea9 100644 --- a/src/main/java/net/knarcraft/blacksmith/config/SmithPreset.java +++ b/src/main/java/net/knarcraft/blacksmith/config/SmithPreset.java @@ -229,7 +229,7 @@ public enum SmithPreset { */ private List getMaterialsEndingWith(String end) { List 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); }