diff --git a/src/main/java/gregtech/api/unification/ore/OrePrefix.java b/src/main/java/gregtech/api/unification/ore/OrePrefix.java index 64eb11cd7fa..30239988324 100644 --- a/src/main/java/gregtech/api/unification/ore/OrePrefix.java +++ b/src/main/java/gregtech/api/unification/ore/OrePrefix.java @@ -467,6 +467,7 @@ public static void init() { block.modifyMaterialAmount(Materials.Glowstone, 4); block.modifyMaterialAmount(Materials.NetherQuartz, 4); + block.modifyMaterialAmount(Materials.CertusQuartz, 4); block.modifyMaterialAmount(Materials.Brick, 4); block.modifyMaterialAmount(Materials.Clay, 4); block.modifyMaterialAmount(Materials.Glass, 1); diff --git a/src/main/java/gregtech/integration/chisel/ChiselModule.java b/src/main/java/gregtech/integration/chisel/ChiselModule.java index c9133912407..c6dc3cafe05 100644 --- a/src/main/java/gregtech/integration/chisel/ChiselModule.java +++ b/src/main/java/gregtech/integration/chisel/ChiselModule.java @@ -3,7 +3,10 @@ import gregtech.api.GTValues; import gregtech.api.block.VariantBlock; import gregtech.api.modules.GregTechModule; +import gregtech.api.unification.material.Material; +import gregtech.api.unification.material.Materials; import gregtech.common.blocks.BlockColored; +import gregtech.common.blocks.BlockCompressed; import gregtech.common.blocks.BlockWarningSign; import gregtech.common.blocks.BlockWarningSign1; import gregtech.common.blocks.MetaBlocks; @@ -63,6 +66,9 @@ public void init(FMLInitializationEvent event) { if (doesGroupExist("treated_wood")) { // IE Treated Wood group addVariations("treated_wood", MetaBlocks.PLANKS, BlockGregPlanks.BlockType.TREATED_PLANK); } + if (doesGroupExist("certus")) { // AE2 Certus Quartz group + addVariation("certus", Materials.CertusQuartz); + } } @SafeVarargs @@ -93,6 +99,12 @@ private void addVariations(String group, StoneType type, boolean enableCobbles) } } + private void addVariation(String group, Material material) { + BlockCompressed block = MetaBlocks.COMPRESSED.get(material); + int meta = block.getMetaFromState(block.getBlock(material)); + addVariation(group, block, meta); + } + private void addVariation(String group, Block block, int meta) { NBTTagCompound tag = new NBTTagCompound(); tag.setString("group", group);