Skip to content

Commit

Permalink
Restore Tic-Tooltips compatibility so it doesn't crash anymore with n…
Browse files Browse the repository at this point in the history
…ew stuff
  • Loading branch information
bonii-xx committed Nov 28, 2014
1 parent e47b570 commit 5187f3b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/tconstruct/library/tools/ArrowMaterial.java
Expand Up @@ -16,4 +16,7 @@ public ArrowMaterial(float weight, float breakChance, float accuraccy)
{
this(weight, breakChance);
}

@Deprecated
public float accuracy = 0f; // tic-tooltips compatibility
}
3 changes: 3 additions & 0 deletions src/main/java/tconstruct/library/tools/BowMaterial.java
Expand Up @@ -16,4 +16,7 @@ public BowMaterial(int durability, int drawspeed, float attack)
{
this(drawspeed, attack);
}

@Deprecated
public int durability = 0; // tic-tooltips compatibility
}
3 changes: 3 additions & 0 deletions src/main/java/tconstruct/library/tools/FletchingMaterial.java
Expand Up @@ -35,4 +35,7 @@ public FletchingMaterial(int materialID, int value, String oredict, ItemStack cr
{
this(materialID, value, oredict, craftingItem, accuracy, 0.01f, 1f, 0xffffffff);
}

@Deprecated
public float mass = 0; // tic-tooltips compatibility
}
7 changes: 6 additions & 1 deletion src/main/java/tconstruct/tools/TinkerTools.java
Expand Up @@ -47,10 +47,15 @@ public class TinkerTools
public static ToolProxyCommon proxy;

// backwards compatibility
@Deprecated
public static Item bowstring;
public static DynamicToolPart arrowhead;
@Deprecated
public static Item arrowhead;
@Deprecated
public static Item fletching;
@Deprecated
public static ToolCore shortbow;
@Deprecated
public static ToolCore arrow;

// Crafting blocks
Expand Down

0 comments on commit 5187f3b

Please sign in to comment.