Skip to content

Commit a321955

Browse files
Fix #332
1 parent b131e16 commit a321955

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nova/src/main/kotlin/xyz/xenondevs/nova/item/enchantment/EnchantmentCategory.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ internal class VanillaEnchantmentCategory(
9999
override val enchantments = ArrayList<Enchantment>()
100100

101101
init {
102-
for (ench in BuiltInRegistries.ENCHANTMENT) {
102+
for ((key, ench) in BuiltInRegistries.ENCHANTMENT.entrySet()) {
103+
if (key.location().namespace != "minecraft")
104+
continue
105+
103106
if (ench.category == vanillaCategory)
104107
enchantments.add(Enchantment.of(ench))
105108
}

0 commit comments

Comments
 (0)