Partial fix for #916

This commit is contained in:
MauveCloud 2017-03-11 19:53:10 -08:00
parent 9da8a7789b
commit 1023ecca65

View file

@ -456,7 +456,7 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements
if (isItemStackUsable(aStack)) {
IToolStats toolStats = getToolStats(aStack);
if(toolStats != null && toolStats.isMinableBlock(state)) {
if(getHarvestLevel(aStack, null) > state.getBlock().getHarvestLevel(state)) {
if(getHarvestLevel(aStack, null) >= state.getBlock().getHarvestLevel(state)) {
float toolSpeed = toolStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed;
return Math.max(defSpeed, toolSpeed);
}