Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix Multi-Machine Manual Recipe (#826)
Browse files Browse the repository at this point in the history
use gt api for tool recipes
  • Loading branch information
chochem authored Jan 19, 2024
1 parent 6c215a2 commit 5de527c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/gtPlusPlus/core/handler/BookHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import net.minecraft.item.ItemStack;

import gregtech.api.enums.GT_Values;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.item.ModItems;
import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.minecraft.RecipeUtils;

Expand Down Expand Up @@ -431,10 +431,11 @@ public static void runLater() {
new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
ItemUtils.getSimpleStack(Items.lava_bucket) },
ItemBookWritten_ThermalBoiler);
RecipeUtils.addShapelessGregtechRecipe(
new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
ItemUtils.getItemStackOfAmountFromOreDict(CI.craftingToolWrench, 1) },
ItemBookWritten_MultiMachineManual);
GT_ModHandler.addCraftingRecipe(
ItemBookWritten_MultiMachineManual,
GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE
| GT_ModHandler.RecipeBits.BUFFERED,
new Object[] { "Xw", 'X', ItemUtils.getSimpleStack(Items.writable_book) });
RecipeUtils.addShapelessGregtechRecipe(
new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
ItemUtils.getItemStackOfAmountFromOreDict("wireGt01Tin", 1) },
Expand Down

0 comments on commit 5de527c

Please sign in to comment.