Skip to content

Commit

Permalink
fix issue with remapping
Browse files Browse the repository at this point in the history
(cherry picked from commit ad5f8e8)
  • Loading branch information
serenibyss authored and Dream-Master committed Jan 1, 2025
1 parent bfdae41 commit 79e4be3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/gregtech/GTMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
}
}
}
Expand Down

0 comments on commit 79e4be3

Please sign in to comment.