Better also make this backwards compatible, in case somebody didn't use the accessors...

This commit is contained in:
Bernhard Bonigl committed 2014-09-04 09:28:40 +02:00
1 parent 6ebb746f0b
commit e15bc977c8
1 file changed
+4
@@ -21,10 +21,13 @@ public class ToolMaterial
@Deprecated
public String displayName;
@Deprecated
public String ability;
@Deprecated
public ToolMaterial(String name, String displayName, int level, int durability, int speed, int damage, float handle, int reinforced, float stonebound, String style, String ability)
{
this(name, level, durability, speed, damage, handle, reinforced, stonebound, style);
this.displayName = prefixName();
this.ability = ability();
}
@Deprecated
@@ -32,6 +35,7 @@ public class ToolMaterial
{
this(name, level, durability, speed, damage, handle, reinforced, stonebound, style);
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)