package com.themastergeneral.moglowstone.blocks;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

import com.themastergeneral.ctdcore.block.CTDBlock;
import com.themastergeneral.moglowstone.MoGlowstone;
import com.themastergeneral.moglowstone.te.TEGlowstone;

public class GSBlock extends CTDBlock {

	public String color;
	public EnumDyeColor dyecolor;

	protected GSBlock(String name, String modid, String color, EnumDyeColor dyecolor) {

		super(Material.GLASS, name, modid);
		this.setCreativeTab(MoGlowstone.creativeTab);
		this.setLightLevel(1.0F);
		this.setHardness(0.3F);
		this.setSoundType(blockSoundType.GLASS);
		this.color = color;
		this.dyecolor = dyecolor;
	}

	@Override
	public boolean hasTileEntity(IBlockState state) {
		return true;
	}

	@Nullable
	@Override
	public TileEntity createTileEntity(@Nonnull World world,
			@Nonnull IBlockState state) {
		return new TEGlowstone();
	}
}

@@ -321,19 +321,205 @@
 aft.
-world.World
+util.math.BlockPos;%0D%0Aimport net.minecraft.world.IBlockAccess;%0D%0Aimport net.minecraft.world.World;%0D%0Aimport net.minecraftforge.fml.common.FMLCommonHandler;%0D%0Aimport net.minecraftforge.fml.common.Loader
 ;%0D%0A%0D
@@ -844,17 +844,21 @@
 g color,
- 
+%0D%0A%09%09%09
 EnumDyeC
@@ -961,24 +961,65 @@
 ativeTab);%0D%0A
+%09%09if (!Loader.isModLoaded(%22albedo%22)) %7B%0D%0A%09
 %09%09this.setLi
@@ -1041,31 +1041,9 @@
 %0D%0A%09%09
-this.setHardness(0.3F);
+%7D
 %0D%0A%09%09
@@ -1337,32 +1337,32 @@
 State state) %7B%0D%0A
-
 %09%09return new TEG
@@ -1377,12 +1377,282 @@
 ();%0D%0A%09%7D%0D
+%0A%0D%0A%09@Override%0D%0A%09public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) %7B%0D%0A%09%09if (Loader.isModLoaded(%22Albedo%22))%0D%0A%09%09%09if (FMLCommonHandler.instance().getEffectiveSide().isServer())%0D%0A%09%09%09%09return 15;%0D%0A%09%09return super.getLightValue(state, world, pos);%0D%0A%09%7D%0D
 %0A%7D%0D%0A

Implement lighting fixes on the correct class lol