Skip to content

Commit

Permalink
Update src/main/java/ch/njol/skript/bukkitutil/EnchantmentUtils.java
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Miller <[email protected]>
  • Loading branch information
ShaneBeee and APickledWalrus authored Jul 1, 2024
1 parent 77195f2 commit c28da37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class EnchantmentUtils {
PATTERNS.put(name.toLowerCase(Locale.ENGLISH), enchantment);
}
// If Minecraft provided, add key without namespace and underscores (ex: "fire aspect")
if (key.getNamespace().equalsIgnoreCase("minecraft"))
if (key.getNamespace().equalsIgnoreCase(NamespacedKey.MINECRAFT))
PATTERNS.put(key.getKey().replace("_", " "), enchantment);
// Add full namespaced key as pattern (ex: "minecraft:fire_aspect", "custom:floopy_floopy")
PATTERNS.put(key.toString(), enchantment);
Expand Down

0 comments on commit c28da37

Please sign in to comment.