Fixed crashing when ic2 is not installed
This commit is contained in:
parent
d8e8f45993
commit
f433aa706a
9 changed files with 19 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue