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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user