Fix typo in EnchantmentArgument.java
This commit is contained in:
parent
aede22811a
commit
430e6fb898
|
|
@ -27,7 +27,7 @@ public class EnchantmentArgument implements CustomArgumentType.Converted<Enchant
|
|||
try {
|
||||
return Enchantment.getByKey(NamespacedKey.minecraft(nativeType));
|
||||
} catch (Exception e) {
|
||||
Message message = MessageComponentSerializer.message().serialize(Component.text("Invalid gamemode %s!".formatted(nativeType), NamedTextColor.RED));
|
||||
Message message = MessageComponentSerializer.message().serialize(Component.text("Invalid enchantment %s!".formatted(nativeType), NamedTextColor.RED));
|
||||
|
||||
throw new CommandSyntaxException(new SimpleCommandExceptionType(message), message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user