Skip to content

Commit

Permalink
Fix enchantment tag initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenicos committed Apr 30, 2024
1 parent e37dadb commit 4f890e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static Enchantment parseEnchantment(String s) {
// Registry exist in older versions, but since 1.20.3 there is a deprecation notice
return Registry.ENCHANTMENT.match(s);
} else if (ServerInstance.Release.FLAT) {
return Enchantment.getByKey(NamespacedKey.minecraft(s));
return Enchantment.getByKey(NamespacedKey.minecraft(s.toLowerCase()));
} else {
return Enchantment.getByName(s);
}
Expand Down

0 comments on commit 4f890e3

Please sign in to comment.