Added null check for Vaygrim
This commit is contained in:
parent
fedb728709
commit
44ae2e8606
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ public class ItemBlockGenerator extends ItemBlock implements IEnergizedItem, ISp
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemstack)
|
||||
{
|
||||
if(GeneratorType.getFromMetadata(itemstack.getItemDamage()) == null)
|
||||
{
|
||||
return "KillMe!";
|
||||
}
|
||||
|
||||
return getUnlocalizedName() + "." + GeneratorType.getFromMetadata(itemstack.getItemDamage()).name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue