GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
254 stars 176 forks source link

Attempt to fix tools from addon materials #2585

Closed ALongStringOfNumbers closed 2 months ago

ALongStringOfNumbers commented 3 months ago

What

Changes ToolHelper#getAndSetToolData to use the material's registry name, so that mod-ids are incluided in the tag, meaning that the mod-id will later get passed to IGTTool#getToolMaterial.

Using the registry name also matches the call in IGTTool#get(), which was changed in the addon material PR, I think this location was just missed.

Outcome

Should allow for tools to be made from addon materials when calling ToolHelper#getAndSetToolData()

Potential Compatibility Issues

Don't think so