mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed a transition crash
This commit is contained in:
1 parent
a31449c2d3
commit
765b58a058
1 file changed
+6
-1
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user