Merge pull request #22 from Cyprias/master

Fixed enchants not being added to items.
This commit is contained in:
Andrzej Pomirski 2012-10-28 15:24:39 -07:00
commit 60c291da03

View File

@ -241,7 +241,7 @@ public class MaterialUtil {
* @return Enchantments found
*/
public static Map<org.bukkit.enchantments.Enchantment, Integer> getEnchantments(String base32) {
if (base32 == null || base32.isEmpty() || !NumberUtil.isLong(base32)) {
if (base32 == null || base32.isEmpty() || NumberUtil.isLong(base32)) {
return new HashMap<org.bukkit.enchantments.Enchantment, Integer>();
}