Use getItem not get()
This commit is contained in:
parent
9fd053a0f4
commit
684efd12a1
|
@ -60,7 +60,7 @@ public enum ChestChangerType {
|
||||||
|
|
||||||
public ItemChestChanger buildItem(Configuration cfg, int id)
|
public ItemChestChanger buildItem(Configuration cfg, int id)
|
||||||
{
|
{
|
||||||
int itemId = cfg.get(Configuration.CATEGORY_ITEM, itemName, id).getInt(id);
|
int itemId = cfg.getItem(itemName, id).getInt(id);
|
||||||
item = new ItemChestChanger(itemId, this);
|
item = new ItemChestChanger(itemId, this);
|
||||||
GameRegistry.registerItem(item, itemName);
|
GameRegistry.registerItem(item, itemName);
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Reference in New Issue