diff --git a/src/main/java/gregtech/loaders/OreDictionaryLoader.java b/src/main/java/gregtech/loaders/OreDictionaryLoader.java index a902983af39..ce1fa96cdf7 100644 --- a/src/main/java/gregtech/loaders/OreDictionaryLoader.java +++ b/src/main/java/gregtech/loaders/OreDictionaryLoader.java @@ -18,6 +18,8 @@ import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; +import com.google.common.base.CaseFormat; + import static gregtech.api.GTValues.M; import static gregtech.api.GTValues.W; @@ -113,8 +115,13 @@ public static void init() { OreDictUnifier.registerOre(new ItemStack(Blocks.STONE, 1, 4), OrePrefix.stone, Materials.Diorite); for (StoneVariantBlock.StoneType type : StoneVariantBlock.StoneType.values()) { - ItemStack item = MetaBlocks.STONE_BLOCKS.get(StoneVariantBlock.StoneVariant.SMOOTH).getItemVariant(type); - OreDictUnifier.registerOre(item, type.getOrePrefix(), type.getMaterial()); + ItemStack smoothType = MetaBlocks.STONE_BLOCKS.get(StoneVariantBlock.StoneVariant.SMOOTH) + .getItemVariant(type); + OreDictUnifier.registerOre(smoothType, type.getOrePrefix(), type.getMaterial()); + ItemStack cobbleType = MetaBlocks.STONE_BLOCKS.get(StoneVariantBlock.StoneVariant.COBBLE) + .getItemVariant(type); + OreDictUnifier.registerOre(cobbleType, + CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "cobble_" + type.getName())); } OreDictUnifier.registerOre(new ItemStack(Blocks.ANVIL), "craftingAnvil");