Permalink
Browse files

Uni Dirt & Giger Saplings were not showing up in creative mode.

  • Loading branch information...
Ri5ux committed Sep 28, 2018
1 parent 1ebf891 commit 74ee8e89ecbb182e8dae09366c2c38adb3eda7b2
@@ -159,7 +159,7 @@
public static final Block unistone = new BlockMaterial(Material.ROCK).setHardness(1.3F).setResistance(2.0F).setRegistryName("unistone");
public static final Block unisand = new BlockMaterial(Material.SAND).setHardness(3.5F).setResistance(2.0F).setRegistryName("unisand");
public static final Block unigravel = new BlockMaterial(Material.SAND).setHardness(3.0F).setLightOpacity(255).setRegistryName("unigravel");
public static final Block unidirt = new BlockUnidentifiedDirt().setHardness(0.5F).setResistance(2.0F).setLightOpacity(255).setRegistryName("unidirt");
public static final Block unidirt = new BlockUnidentifiedDirt().setHardness(0.5F).setResistance(2.0F).setLightOpacity(255).setRegistryName("unidirt").setCreativeTab(Tab.BLOCKS);
public static final Block stalagmite = new BlockStalagmite(Material.PLANTS).setHardness(0.0F).setLightOpacity(0).setCreativeTab(Tab.MAIN).setRegistryName("stalagmite");
public static final Block gigerLog = new BlockUnidentifiedLog().setHardness(5F).setLightOpacity(0).setCreativeTab(Tab.MAIN).setRegistryName("unitree.wood");
public static final Block gigerTendons = new BlockUnidentifiedTreeTendon().setHardness(0.0F).setLightOpacity(0).setCreativeTab(Tab.MAIN).setRegistryName("unitree.tendons");
@@ -284,11 +284,7 @@ public static void registerBlocks(RegistryEvent.Register<Block> event)
block.setTranslationKey(block.getRegistryName().getNamespace() + ":" + block.getRegistryName().getPath());
event.getRegistry().register(block);
if (block.getCreativeTab() != null)
{
block.setCreativeTab(block.getCreativeTab());
}
else
if (block.getCreativeTab() == null)
{
block.setCreativeTab(Tab.BLOCKS);
}
@@ -10,8 +10,6 @@
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.IPlantable;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BlockUnidentifiedDirt extends BlockDirt
{
@@ -32,10 +30,9 @@ public void onPlayerDestroy(World worldIn, BlockPos pos, IBlockState state)
super.onPlayerDestroy(worldIn, pos, state);
}
@SideOnly(Side.CLIENT)
@Override
public void getSubBlocks(CreativeTabs itemIn, NonNullList<ItemStack> items)
{
//items.add(new ItemStack(itemIn));
items.add(new ItemStack(this, 1));
}
}
@@ -46,11 +46,10 @@ protected boolean canSustainBush(IBlockState state)
return true;
}
@SuppressWarnings("unchecked")
@Override
public void getSubBlocks(CreativeTabs itemIn, NonNullList<ItemStack> items)
{
// list.add(new ItemStack(itemIn, 1, 0));
items.add(new ItemStack(this, 1));
}
public boolean isSapling(World world, BlockPos pos)

0 comments on commit 74ee8e8

Please sign in to comment.