mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Backwards Compat for ToolMaterial constructor
This commit is contained in:
1 parent
29f72ed357
commit
4a9c383dd8
1 file changed
+8
@@ -41,6 +41,14 @@ public class ToolMaterial
|
||||
this.ability = ability();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ToolMaterial(String name, int level, int durability, int speed, int damage, float handle, int reinforced, float stonebound, String style)
|
||||
{
|
||||
this(name, level, durability, speed, damage, handle, reinforced, stonebound, style, 0xFFFFFF);
|
||||
this.displayName = prefixName();
|
||||
this.ability = ability();
|
||||
}
|
||||
|
||||
public ToolMaterial(String name, int level, int durability, int speed, int damage, float handle, int reinforced, float stonebound, String style, int primaryColor)
|
||||
{
|
||||
this(name, "material." + name.toLowerCase().replaceAll(" ", ""), level, durability, speed, damage, handle, reinforced, stonebound, style, primaryColor);
|
||||
|
||||
Reference in new issue
Block a user