mirror of
https://github.com/GTNewHorizons/WailaHarvestability.git
synced 2026-10-25 20:32:35 +00:00
Use Forge's metadata-specific getDigSpeed method to check effectiveness
* Closes #38
This commit is contained in:
1 parent
97cb98247f
commit
99b3b1a180
1 file changed
+1
-1
@@ -110,7 +110,7 @@ public class ToolHelper
|
||||
|
||||
return harvestTypes.contains(effectiveToolClass);
|
||||
}
|
||||
return ForgeHooks.isToolEffective(tool, block, metadata) || (toolHasAnyToolClass(tool) ? isToolOfClass(tool, effectiveToolClass) : tool.func_150997_a(block) > 1.5f); // func_150997_a = getStrVsBlock
|
||||
return ForgeHooks.isToolEffective(tool, block, metadata) || (toolHasAnyToolClass(tool) ? isToolOfClass(tool, effectiveToolClass) : tool.getItem().getDigSpeed(tool, block, metadata) > 1.5f);
|
||||
}
|
||||
|
||||
public static boolean canToolHarvestLevel(ItemStack tool, Block block, int metadata, int harvestLevel)
|
||||
|
||||
Reference in new issue
Block a user