Added backwards compatibility to 4c410e

This commit is contained in:
squeek committed 2014-09-02 16:32:49 -07:00
1 parent f6e6798f8d
commit 97c8789fca
1 file changed
+8
@@ -11,6 +11,7 @@ public class ToolMaterial
// Reinforced level, shoddy/spiny level, color/style on name
public final String materialName;
public final String displayName;
public final int harvestLevel;
public final int durability;
public final int miningspeed; // <-- divided by 100
@@ -21,9 +22,16 @@ public class ToolMaterial
public final String tipStyle;
public final 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, ability);
}
public ToolMaterial(String name, int level, int durability, int speed, int damage, float handle, int reinforced, float stonebound, String style, String ability)
{
this.materialName = name;
this.displayName = prefixName();
this.harvestLevel = level;
this.durability = durability;
this.miningspeed = speed;