Fixed a transition crash
This commit is contained in:
parent
a31449c2d3
commit
765b58a058
1 changed files with 6 additions and 1 deletions
|
@ -46,6 +46,11 @@ public class ItemDust extends ItemMekanism
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack item)
|
||||
{
|
||||
return "item." + Resource.values()[item.getItemDamage()].getName().toLowerCase() + "Dust";
|
||||
if(item.getItemDamage() <= Resource.values().length-1)
|
||||
{
|
||||
return "item." + Resource.values()[item.getItemDamage()].getName().toLowerCase() + "Dust";
|
||||
}
|
||||
|
||||
return "Invalid";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue