package org.cyclops.integrateddynamics.block;

import net.minecraft.block.Block;
import net.minecraft.block.SaplingBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import org.cyclops.cyclopscore.config.extendedconfig.BlockConfig;
import org.cyclops.integrateddynamics.IntegratedDynamics;
import org.cyclops.integrateddynamics.world.gen.TreeMenril;

/**
 * Config for the Menril Sapling.
 * @author rubensworks
 *
 */
public class BlockMenrilSaplingConfig extends BlockConfig {

    public BlockMenrilSaplingConfig() {
        super(
                IntegratedDynamics._instance,
                "menril_sapling",
                eConfig -> new SaplingBlock(new TreeMenril(), Block.Properties.create(Material.PLANTS)
                        .doesNotBlockMovement()
                        .tickRandomly()
                        .hardnessAndResistance(0)
                        .sound(SoundType.PLANT)),
                getDefaultItemConstructor(IntegratedDynamics._instance)
        );
    }
    
}

@@ -199,16 +199,254 @@
 terial;%0A
+import net.minecraft.client.renderer.RenderType;%0Aimport net.minecraft.client.renderer.RenderTypeLookup;%0Aimport net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;%0Aimport net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;%0A
 import o
@@ -1260,16 +1260,252 @@
      );%0A
+        FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientSetup);%0A    %7D%0A%0A    public void onClientSetup(FMLClientSetupEvent event) %7B%0A        RenderTypeLookup.setRenderLayer(getInstance(), RenderType.getCutout());%0A
     %7D%0A  

Fix menril sapling having incorrect render layer