diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java index 46fe4065..f1b00558 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB1.java @@ -1,5 +1,6 @@ package gregtech.common.blocks; +import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.GregTech_API; import gregtech.api.enums.Materials; import gregtech.api.enums.OrePrefixes; @@ -9,7 +10,7 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class GT_Block_Ores_UB1 extends GT_Block_Ores_Abstract { - Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:igneousStone"); + Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "igneousStone"); public GT_Block_Ores_UB1() { super("gt.blockores.ub1", true, Material.rock); diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java index ffce796c..7b2ff5cd 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB2.java @@ -1,5 +1,6 @@ package gregtech.common.blocks; +import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.GregTech_API; import gregtech.api.enums.Materials; import gregtech.api.enums.OrePrefixes; @@ -9,7 +10,7 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class GT_Block_Ores_UB2 extends GT_Block_Ores_Abstract { - Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:metamorphicStone"); + Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "metamorphicStone"); public GT_Block_Ores_UB2() { super("gt.blockores.ub2", true, Material.rock); diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java index 52c8aa60..b2dc7d92 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores_UB3.java @@ -1,5 +1,6 @@ package gregtech.common.blocks; +import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.GregTech_API; import gregtech.api.enums.Materials; import gregtech.api.enums.OrePrefixes; @@ -9,7 +10,7 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class GT_Block_Ores_UB3 extends GT_Block_Ores_Abstract { - Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:sedimentaryStone"); + Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "sedimentaryStone"); public GT_Block_Ores_UB3() { super("gt.blockores.ub3", true, Material.rock);