Skip to content

Commit

Permalink
Dont instantiate itemstacks with invalid materials
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Sep 25, 2024
1 parent af2d6f6 commit 591da50
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public EnchantmentRune(ItemGroup itemGroup, SlimefunItemStack item, RecipeType r
super(itemGroup, item, recipeType, recipe);

for (Material mat : Material.values()) {
if (!mat.isItem()) {
continue;
}
if (Slimefun.instance().isUnitTest() && mat.isLegacy()) continue;

List<Enchantment> enchantments = new ArrayList<>();
Expand Down

0 comments on commit 591da50

Please sign in to comment.