Skip to content

Commit

Permalink
Add comment for magic number in HarvestTool
Browse files Browse the repository at this point in the history
  • Loading branch information
mDiyo committed Jul 29, 2014
1 parent 95d9446 commit bb70b06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/tconstruct/library/tools/HarvestTool.java
Expand Up @@ -47,6 +47,7 @@ public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPl
float blockHardness = block.getBlockHardness(world, x, y, z);
float localHardness = localBlock == null ? Float.MAX_VALUE : localBlock.getBlockHardness(world, x, y, z);

//Choose blocks that aren't too much harder than the first block. Stone: 2.0, Ores: 3.0
if (hlvl <= toolLevel && localHardness - 1.5 <= blockHardness)
{
boolean cancelHarvest = false;
Expand Down

0 comments on commit bb70b06

Please sign in to comment.