1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-02-24 00:13:48 +01:00

Fix raw bukkit itemdb lookup

This commit is contained in:
KHobbits 2013-03-16 12:11:03 +00:00
parent d1c172f957
commit 69cbc926cf

View File

@ -116,9 +116,9 @@ public class ItemDb implements IConf, IItemDb
metaData = durabilities.get(itemname);
}
}
else if (Material.getMaterial(itemname) != null)
else if (Material.getMaterial(itemname.toUpperCase(Locale.ENGLISH)) != null)
{
itemid = Material.getMaterial(itemname).getId();
itemid = Material.getMaterial(itemname.toUpperCase(Locale.ENGLISH)).getId();
metaData = 0;
}
else