1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 20:41:37 +02:00

Fix raw bukkit itemdb lookup

This commit is contained in:
KHobbits
2013-03-16 12:11:03 +00:00
parent 80976fa09e
commit 706143f916

View File

@@ -116,9 +116,9 @@ public class ItemDb implements IConf, IItemDb
metaData = durabilities.get(itemname); 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; metaData = 0;
} }
else else