Hide some unused blocks in NEI

This commit is contained in:
Muramasa 2016-10-13 18:52:21 +01:00
parent e16b037cb7
commit ce632479bc
2 changed files with 6 additions and 6 deletions

View file

@ -115,7 +115,8 @@ public abstract class GT_Block_Casings_Abstract
@SideOnly(Side.CLIENT)
public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList) {
for (int i = 0; i < 16; i++) {
aList.add(new ItemStack(aItem, 1, i));
ItemStack aStack = new ItemStack(aItem, 1, i);
if (!aStack.getDisplayName().contains(".name")) aList.add(aStack);
}
}
}

View file

@ -13,8 +13,9 @@ import gregtech.api.objects.MaterialStack;
import gregtech.api.util.GT_LanguageManager;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import ic2.core.block.EntityIC2Explosive;
import ic2.core.block.EntityItnt;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
@ -30,9 +31,6 @@ import net.minecraft.util.StatCollector;
import net.minecraft.world.Explosion;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import ic2.core.IC2;
import ic2.core.block.EntityIC2Explosive;
import ic2.core.block.EntityItnt;
import java.util.List;
import java.util.Random;
@ -278,7 +276,8 @@ public class GT_Block_Reinforced extends GT_Generic_Block {
@SideOnly(Side.CLIENT)
public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList) {
for (int i = 0; i < 16; i++) {
aList.add(new ItemStack(aItem, 1, i));
ItemStack aStack = new ItemStack(aItem, 1, i);
if (!aStack.getDisplayName().contains(".name")) aList.add(aStack);
}
}
}