package org.pfaa.geologica.block;

import cpw.mods.fml.relauncher.ReflectionHelper;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
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.init.Blocks;

public class VanillaOreOverrideBlock extends Block {

	
	public VanillaOreOverrideBlock(Block vanillaOre) {
		super(vanillaOre.getMaterial());
		this.setCreativeTab(vanillaOre.getCreativeTabToDisplayOn());
		this.setBlockTextureName((String)ReflectionHelper.getPrivateValue(Block.class, vanillaOre, "textureName"));
		this.blockHardness = ReflectionHelper.getPrivateValue(Block.class, vanillaOre, "blockHardness");
		this.blockResistance = ReflectionHelper.getPrivateValue(Block.class, vanillaOre, "blockResistance");
		this.stepSound = vanillaOre.stepSound;
		this.setHarvestLevel("pickaxe", (vanillaOre == Blocks.lapis_ore || vanillaOre == Blocks.iron_ore) ? 1 : 2);
	}
	
}

@@ -39,126 +39,33 @@
 ort 
-cpw.mods.fml.relauncher.ReflectionHelper;%0Aimport cpw.mods.fml.relauncher.Side;%0Aimport cpw.mods.fml.relauncher.SideOnly
+net.minecraft.block.Block
 ;%0Aim
@@ -79,35 +79,35 @@
 t.minecraft.
-block
+init
 .Block
+s
 ;%0Aimport net
@@ -107,186 +107,104 @@
 ort 
-net.minecraft.block.material.Material;%0Aimport net.minecraft.client.renderer.texture.IIconRegister;%0Aimport net.minecraft.creativetab.CreativeTabs;%0Aimport net.minecraft.init.Blocks
+cpw.mods.fml.common.ObfuscationReflectionHelper;%0Aimport cpw.mods.fml.relauncher.ReflectionHelper
 ;%0A%0Ap
@@ -258,11 +258,8 @@
 ck %7B
-%0A%0A%09
 %0A%09pu
@@ -440,16 +440,27 @@
 (String)
+Obfuscation
 Reflecti
@@ -549,16 +549,27 @@
 dness = 
+Obfuscation
 Reflecti
@@ -661,16 +661,27 @@
 tance = 
+Obfuscation
 Reflecti
@@ -908,8 +908,6 @@
 %0A%09%7D%0A
-%09%0A
 %7D%0A

fix issue with manipulation of fields with obfuscated names