diff options
author | ST-DDT <ST-DDT@gmx.de> | 2013-04-20 16:55:23 +0300 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2013-08-20 23:55:32 -0600 |
commit | ed364a7ef7c093ed26e41f9695a23d20778160af (patch) | |
tree | 2d9607f6447ee9c86470f6285cd6c221bb5a9b16 /src/main/java/org | |
parent | eedcead5c4c357405ee2ca6cebbd7155f3563043 (diff) | |
download | bukkit-ed364a7ef7c093ed26e41f9695a23d20778160af.tar bukkit-ed364a7ef7c093ed26e41f9695a23d20778160af.tar.gz bukkit-ed364a7ef7c093ed26e41f9695a23d20778160af.tar.lz bukkit-ed364a7ef7c093ed26e41f9695a23d20778160af.tar.xz bukkit-ed364a7ef7c093ed26e41f9695a23d20778160af.zip |
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.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |