Merge diff from krnlyng:

Adjust item spawn, to allow for match native names.
This commit is contained in:
KHobbits 2011-08-10 10:45:24 +01:00
parent db50d455df
commit 47c8217511
3 changed files with 7 additions and 2 deletions

View file

@ -163,6 +163,11 @@ public class ItemDb implements IConf
metaData = durabilities.get(itemname);
}
}
else if(Material.getMaterial(itemname) != null)
{
itemid = Material.getMaterial(itemname).getId();
metaData = 0;
}
else
{
throw new Exception(Util.format("unknownItemName", id));