From fc7a691f73141ecfeb009af37b3bdba5cd635605 Mon Sep 17 00:00:00 2001 From: tier940 Date: Sat, 2 Sep 2023 12:41:20 +0900 Subject: [PATCH] =?UTF-8?q?CEu=E3=81=AEharderCharcoalRecipe=E3=83=95?= =?UTF-8?q?=E3=83=A9=E3=82=B0=E5=88=86=E5=B2=90=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/gregtechfoodoption/block/GTFOMetaBlocks.java | 5 ++++- src/main/java/gregtechfoodoption/block/GTFOTree.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/gregtechfoodoption/block/GTFOMetaBlocks.java b/src/main/java/gregtechfoodoption/block/GTFOMetaBlocks.java index cd89e665..b904e9e7 100644 --- a/src/main/java/gregtechfoodoption/block/GTFOMetaBlocks.java +++ b/src/main/java/gregtechfoodoption/block/GTFOMetaBlocks.java @@ -7,6 +7,7 @@ import gregtech.api.unification.ore.OrePrefix; import gregtech.api.unification.stack.ItemMaterialInfo; import gregtech.api.unification.stack.MaterialStack; +import gregtech.common.ConfigHolder; import gregtechfoodoption.block.tree.GTFOBlockLeaves; import gregtechfoodoption.block.tree.GTFOBlockLog; import gregtechfoodoption.block.tree.GTFOBlockPlanks; @@ -121,7 +122,9 @@ public static void registerOreDict() { }); GTFO_LOGS.forEach(log -> { OreDictUnifier.registerOre(new ItemStack(log, 1, GTValues.W), OrePrefix.log, Materials.Wood); - GameRegistry.addSmelting(new ItemStack(log, 1, GTValues.W), new ItemStack(Items.COAL, 1, 1), 0.15F); + if (!ConfigHolder.recipes.harderCharcoalRecipe) { + GameRegistry.addSmelting(new ItemStack(log, 1, GTValues.W), new ItemStack(Items.COAL, 1, 1), 0.15F); + } }); GTFO_PLANKS.forEach(planks -> { OreDictUnifier.registerOre(new ItemStack(planks, 1, GTValues.W), OrePrefix.plank, Materials.Wood); diff --git a/src/main/java/gregtechfoodoption/block/GTFOTree.java b/src/main/java/gregtechfoodoption/block/GTFOTree.java index a2737e88..09be3d0c 100644 --- a/src/main/java/gregtechfoodoption/block/GTFOTree.java +++ b/src/main/java/gregtechfoodoption/block/GTFOTree.java @@ -217,7 +217,7 @@ public void initRecipes() { registerWoodTypeRecipe(new WoodTypeEntry.Builder(GTFOValues.MODID, this.name) .planks(planks, null) - .log(log) + .log(log).removeCharcoalRecipe() .build()); GREENHOUSE_RECIPES.recipeBuilder().EUt(60).duration(2000)