fix startup crash from tool property

This commit is contained in:
Pyritie 2026-02-09 15:29:45 +00:00
parent 69fdcaf83a
commit 3c98343897

View file

@ -355,6 +355,7 @@ const registerGTCEuMaterialModification = (event) => {
GTMaterials.BlackSteel.setProperty(PropertyKey.TOOL, ToolProperty.Builder.of(6.5, 4.5, 1228, 3, metalTooling).build());
// Cast iron tools don't make sense but gregtech shits itself if they're missing,
// so I'm just giving them terrible terrible stats
GTMaterials.Iron.getProperties().removeProperty(PropertyKey.TOOL);
GTMaterials.Iron.setProperty(PropertyKey.TOOL, ToolProperty.Builder.of(2.5, 1.0, 20, 2, [GTToolType.PICKAXE]).build());
// Hide netherite too
GTMaterials.Netherite.getProperty(PropertyKey.TOOL).removeTypes(metalTooling);