From 5caecd411b28134ac09360109e78485246810b8c Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Tue, 24 Dec 2024 14:13:03 +0000 Subject: [PATCH] use customitem --- src/main/java/com/dreammaster/scripts/ScriptEFR.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dreammaster/scripts/ScriptEFR.java b/src/main/java/com/dreammaster/scripts/ScriptEFR.java index 6a6348337..50a035c7f 100644 --- a/src/main/java/com/dreammaster/scripts/ScriptEFR.java +++ b/src/main/java/com/dreammaster/scripts/ScriptEFR.java @@ -3,10 +3,13 @@ import static gregtech.api.enums.Mods.EtFuturumRequiem; import static gregtech.api.enums.Mods.Minecraft; import static gregtech.api.enums.Mods.Thaumcraft; +import static gregtech.api.util.GTModHandler.getModItem; import java.util.Arrays; import java.util.List; +import com.dreammaster.recipes.CustomItem; + import gregtech.api.enums.ItemList; import gregtech.api.util.GTModHandler; @@ -56,7 +59,8 @@ public void loadRecipes() { for (int i = 0; i < 16; i++) { addShapelessRecipe( GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i), - createItemStack(Thaumcraft.ID, "blockWoodenDevice", 1, 8, "{color:" + i + "b}", missing)); + new CustomItem.NBTItem(getModItem(Thaumcraft.ID, "blockWoodenDevice", 1, 8)) + .setNBT("{color:" + i + "b}")); addShapelessRecipe( createItemStack(Thaumcraft.ID, "blockWoodenDevice", 1, 8, "{color:" + i + "b}", missing), GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i));