
Removing Iron Pickaxes deletes all recipe connections in game
jurrejelle opened this issue ยท 0 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
latest
Minecraft Version
1.20.1 Forge
Recipe Viewer Installed
None
Environment
Singleplayer
Cross-Mod Interaction
Yes
Other Installed Mods
dev env
Expected Behavior
Deleting iron pickaxe doesn't delete all recipes
Actual Behavior


The recipes still seem to exist, but nothing is connected to them
Steps to Reproduce
if (GTMaterials.Iron.hasProperty(PropertyKey.TOOL)) {
GTMaterials.Iron.removeProperty(PropertyKey.TOOL);
}
GTMaterials.Iron.setProperty(PropertyKey.TOOL,
(ToolProperty.Builder.of(16, 40, 8192, 6, GTToolType.AXE).magnetic()
.unbreakable().build()));
Additional Information
MaceratorLogic L113 does
stack = GTMaterialItems.TOOL_ITEMS.get(GTMaterials.Iron, GTToolType.PICKAXE).asStack();
stack.setHoverName(Component.translatable("gtceu.auto_decomp.tool"));
stack.setDamageValue(79);
pickaxeRecipe = applyDurabilityRecipe("tool_decomp", stack, GTMaterials.Iron,
(float) (GTToolType.PICKAXE.materialAmount / GTValues.M), durability,
GTValues.VH[GTValues.LV], 2);
if the iron pickaxe doesn't exist, then this breaks.
Fix is probably to instead of iron pickaxe, take the first pickaxe that exist (or any pickaxe)