Fix Creative tab issue
This commit is contained in:
parent
7426d83900
commit
e0c39a4777
31 changed files with 102 additions and 9 deletions
|
@ -89,6 +89,9 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
|
|||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item,
|
||||
CreativeTabs par2CreativeTabs, NonNullList itemList) {
|
||||
if(!func_194125_a(par2CreativeTabs)){
|
||||
return;
|
||||
}
|
||||
ItemStack uncharged = new ItemStack(ModItems.LAPOTRONIC_ORB_PACK);
|
||||
ItemStack charged = new ItemStack(ModItems.LAPOTRONIC_ORB_PACK);
|
||||
PoweredItem.setEnergy(getMaxPower(charged), charged);
|
||||
|
|
|
@ -107,6 +107,9 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
|
|||
@Override
|
||||
public void getSubItems(
|
||||
CreativeTabs par2CreativeTabs, NonNullList itemList) {
|
||||
if(!func_194125_a(par2CreativeTabs)){
|
||||
return;
|
||||
}
|
||||
ItemStack uncharged = new ItemStack(ModItems.LITHIUM_BATTERY_PACK);
|
||||
ItemStack charged = new ItemStack(ModItems.LITHIUM_BATTERY_PACK);
|
||||
PoweredItem.setEnergy(getMaxPower(charged), charged);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue