Skip to content

Commit

Permalink
Added itemstack sensitive version for future use
Browse files Browse the repository at this point in the history
  • Loading branch information
Glassmaker committed Mar 19, 2014
1 parent 4a55e7f commit 0f47080
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/tconstruct/library/tools/DualHarvestTool.java
Expand Up @@ -125,6 +125,12 @@ public boolean func_150897_b (Block block)
return false;
}

@Override
public boolean canHarvestBlock(Block block, ItemStack itemStack)
{
return func_150897_b(block);
}

@Override
public String[] toolCategories ()
{
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/tconstruct/library/tools/HarvestTool.java
Expand Up @@ -173,6 +173,7 @@ float calculateStrength (NBTTagCompound tags, Block block, int meta)
return 0.1f;
}

@Override
public boolean func_150897_b (Block block)
{
if (block.getMaterial().isToolNotRequired())
Expand All @@ -187,6 +188,12 @@ public boolean func_150897_b (Block block)
return false;
}

@Override
public boolean canHarvestBlock(Block block, ItemStack itemStack)
{
return func_150897_b(block);
}

@Override
public String[] toolCategories ()
{
Expand Down

0 comments on commit 0f47080

Please sign in to comment.