mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-29 08:52:27 +00:00
Merge diff from krnlyng:
Adjust item spawn, to allow for match native names.
This commit is contained in:
parent
db50d455df
commit
47c8217511
3 changed files with 7 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue