Fixed crashing when ic2 is not installed

This commit is contained in:
modmuss50 2015-07-26 15:35:02 +01:00
parent d8e8f45993
commit f433aa706a
9 changed files with 19 additions and 17 deletions

View file

@ -48,7 +48,7 @@ public class ItemAdvancedDrill extends ItemPickaxe implements IElectricItem {
@SideOnly(Side.CLIENT)
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList){
ItemStack itemStack = new ItemStack(this, 1);
if (getChargedItem(itemStack) == this){
if (getChargedItem(itemStack) == this && ElectricItem.manager != null){
ItemStack charged = new ItemStack(this, 1);
ElectricItem.manager.charge(charged, 2147483647, 2147483647, true, false);
itemList.add(charged);