Skip to content

Commit d74f32e

Browse files
committed
fix
1 parent 5057c33 commit d74f32e

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package com.github.gtexpert.gtbm.integration.gendustry.recipes;
22

3-
import static gregtech.api.unification.ore.OrePrefix.*;
4-
5-
import net.minecraft.init.Blocks;
6-
import net.minecraft.item.ItemStack;
3+
import static gregtech.loaders.recipe.CraftingComponent.*;
74

5+
import gregtech.api.GTValues;
86
import gregtech.api.recipes.ModHandler;
9-
import gregtech.api.unification.material.Materials;
10-
import gregtech.api.unification.stack.UnificationEntry;
7+
import gregtech.loaders.recipe.MetaTileEntityLoader;
118

129
import com.github.gtexpert.gtbm.api.util.Mods;
13-
import com.github.gtexpert.gtbm.integration.gendustry.GendustryConfigHolder;
10+
import com.github.gtexpert.gtbm.integration.gendustry.metatileentities.GendustryMetaTileEntities;
1411

1512
public class GendustryBlocksRecipe {
1613

@@ -20,15 +17,15 @@ public static void init() {
2017

2118
private static void machines() {
2219
// Industrial Apiary
23-
if (GendustryConfigHolder.IndustrialApiary) {
24-
ModHandler.addShapedRecipe(true, "gendustry_industrial_apiary",
25-
Mods.Gendustry.getItem("industrial_apiary"),
26-
"LTL", "LOL", "ASA",
27-
'L', "blockGlass",
28-
'T', Mods.Gendustry.getItem("bee_receptacle"),
29-
'O', Mods.Forestry.getItem("sturdy_machine"),
30-
'A', new UnificationEntry(gear, Materials.Bronze),
31-
'S', new ItemStack(Blocks.PISTON));
32-
}
20+
MetaTileEntityLoader.registerMachineRecipe(true, GendustryMetaTileEntities.INDUSTRIAL_APIARY,
21+
"ACA", "RHR", "ASA",
22+
'A', Mods.Forestry.getItem("alveary.plain"),
23+
'C', Mods.Forestry.getItem("chipsets", 1, 1),
24+
'R', ROBOT_ARM,
25+
'H', HULL,
26+
'S', Mods.Forestry.getItem("alveary.sieve"));
27+
ModHandler.addShapelessRecipe("gendustry_to_gtbm_industrial_apiary",
28+
GendustryMetaTileEntities.INDUSTRIAL_APIARY[GTValues.HV].getStackForm(),
29+
Mods.Gendustry.getItem("industrial_apiary"));
3330
}
3431
}

0 commit comments

Comments
 (0)