From c648e5402c0c53de7f8fb5dacc6159a259a2cc6f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 20 Apr 2013 16:55:23 +0300 Subject: [PATCH] Fix missing closing bracket in addEnchantment. Fixes BUKKIT-4126 Prior to this commit the message would display as "...(given #, bounds are # to #". This commit changes that by adding the missing bracket to the end of the statement. This is strictly a visual error. By: ST-DDT --- paper-api/src/main/java/org/bukkit/inventory/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java index 244aa559c..b7e92ff7c 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java @@ -411,7 +411,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable { public void addEnchantment(Enchantment ench, int level) { Validate.notNull(ench, "Enchantment cannot be null"); if ((level < ench.getStartLevel()) || (level > ench.getMaxLevel())) { - throw new IllegalArgumentException("Enchantment level is either too low or too high (given " + level + ", bounds are " + ench.getStartLevel() + " to " + ench.getMaxLevel()); + throw new IllegalArgumentException("Enchantment level is either too low or too high (given " + level + ", bounds are " + ench.getStartLevel() + " to " + ench.getMaxLevel() + ")"); } else if (!ench.canEnchantItem(this)) { throw new IllegalArgumentException("Specified enchantment cannot be applied to this itemstack"); }