From 79e4be3a1054275793482903cd80b57db3d3eea7 Mon Sep 17 00:00:00 2001 From: Maya <10861407+serenibyss@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:31:43 -0700 Subject: [PATCH] fix issue with remapping (cherry picked from commit ad5f8e8d95bc9def29a3a158b40315b06a566b3f) --- src/main/java/gregtech/GTMod.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/gregtech/GTMod.java b/src/main/java/gregtech/GTMod.java index 0f7f7aec296..58a4ec68253 100644 --- a/src/main/java/gregtech/GTMod.java +++ b/src/main/java/gregtech/GTMod.java @@ -18,6 +18,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.FurnaceRecipes; @@ -839,6 +840,10 @@ public void onMissingMappings(FMLMissingMappingsEvent event) { if ("dreamcraft:gt.blockcasingsNH".equals(mapping.name)) { mapping.remap(GregTechAPI.sBlockCasingsNH); } + } else if (mapping.type == GameRegistry.Type.ITEM) { + if ("dreamcraft:gt.blockcasingsNH".equals(mapping.name)) { + mapping.remap(Item.getItemFromBlock(GregTechAPI.sBlockCasingsNH)); + } } } }