Skip to content

Commit

Permalink
Merge pull request Nukepowered#172 from YuRaNnNzZZ/axefix
Browse files Browse the repository at this point in the history
Fix GT axes using proper MCP name for break speed function override.
  • Loading branch information
TheDarkDnKTv authored Sep 4, 2022
2 parents 3591727 + bfc95e0 commit f6bbb69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public GT_Vanilla_Axe(String aUnlocalizedName, String aMaterialName, int aHarves
setHarvestLevel("axe", mHarvestLevel);
}

public float getStrVsBlock(ItemStack aStack, Block aBlock) {
@Override
public float func_150893_a(ItemStack aStack, Block aBlock) {
return aBlock != null && (aBlock.getMaterial() == Material.wood || aBlock.getMaterial() == Material.plants || aBlock.getMaterial() == Material.vine) ? this.efficiencyOnProperMaterial : super.func_150893_a(aStack, aBlock);
}
}

0 comments on commit f6bbb69

Please sign in to comment.