package com.themastergeneral.moglowstone.blocks;

import java.util.Random;

import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.registry.GameRegistry;

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

public class GSOre extends CTDBlock {
	protected GSOre(String name, String modid) {

		super(Material.ROCK, name, modid);
		this.setCreativeTab(MoGlowstone.creativeTab);
		if (!Loader.isModLoaded("albedo"))
		{
			this.setLightLevel(0.3F);
		}
		this.setHardness(3.0F);
		this.setSoundType(blockSoundType.STONE);
		this.setHarvestLevel("pickaxe", 2);
	}
	
	@Override
	public Item getItemDropped(IBlockState state, Random rand, int fortune)
    {
        return Items.GLOWSTONE_DUST;
    }
	
	@Override
	public int quantityDroppedWithBonus(int fortune, Random random)
    {
       return 2 + random.nextInt(4 - 2 + fortune + 1);
    }
	@Override
	public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) {
		if (Loader.isModLoaded("albedo"))
			if (FMLCommonHandler.instance().getEffectiveSide().isServer())
				return 15;
		return super.getLightValue(state, world, pos);
	}
}

@@ -786,82 +786,8 @@
 b);%0A
-%09%09if (!Loader.isModLoaded(%22albedo%22))%0A%09%09%7B%0A%09%09%09this.setLightLevel(0.3F);%0A%09%09%7D%0A
 %09%09th
@@ -808,16 +808,16 @@
 (3.0F);%0A
+
 %09%09this.s
@@ -889,16 +889,44 @@
 e%22, 2);%0A
+%09%09this.setLightLevel(0.3F);%0A
 %09%7D%0A%09%0A%09@O
@@ -1198,273 +1198,12 @@
 1);%0A
+
     %7D%0A
-%09@Override%0A%09public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) %7B%0A%09%09if (Loader.isModLoaded(%22albedo%22))%0A%09%09%09if (FMLCommonHandler.instance().getEffectiveSide().isServer())%0A%09%09%09%09return 15;%0A%09%09return super.getLightValue(state, world, pos);%0A%09%7D%0A
 %7D%0A

Remove lighting fixes. Wrong class!