mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Fix bug that ALWAYS added null to the ToolMaterials when using addtoolMaterial(int, ToolMaterial)
This commit is contained in:
1 parent
efbed8af88
commit
4de655f533
1 file changed
+2
-2
@@ -340,8 +340,8 @@ public class TConstructRegistry
|
||||
ToolMaterial mat = toolMaterials.get(materialID);
|
||||
if (mat == null)
|
||||
{
|
||||
toolMaterials.put(materialID, mat);
|
||||
toolMaterialStrings.put(material.name(), mat);
|
||||
toolMaterials.put(materialID, material);
|
||||
toolMaterialStrings.put(material.name(), material);
|
||||
}
|
||||
else
|
||||
throw new IllegalArgumentException("[TCon API] Material ID " + materialID + " is already occupied by " + mat.materialName);
|
||||
|
||||
Reference in new issue
Block a user