From ed364a7ef7c093ed26e41f9695a23d20778160af Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 20 Apr 2013 16:55:23 +0300 Subject: 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. --- src/main/java/org/bukkit/inventory/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index 244aa559..b7e92ff7 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/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"); } -- cgit v1.2.3