Skip to content

Commit

Permalink
fix issue with remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Jan 1, 2025
1 parent d4fd446 commit ad5f8e8
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 @@ -837,6 +838,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 ad5f8e8

Please sign in to comment.