Skip to content

Commit

Permalink
Enchantment arg parser is now case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jul 24, 2024
1 parent 6a7a825 commit 956d4fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object ArgParserEnchantment : LookupArgParser {
for (arg in args) {
val argSplit = arg.split(":")

val enchant = Enchantment.getByKey(NamespacedKey.minecraft(argSplit[0])) ?: continue
val enchant = Enchantment.getByKey(NamespacedKey.minecraft(argSplit[0].lowercase())) ?: continue
val level = argSplit.getOrNull(1)?.toIntOrNull() ?: enchant.maxLevel

enchants[enchant] = level
Expand Down

0 comments on commit 956d4fa

Please sign in to comment.