diff --git a/src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java b/src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java index aac061ca..363d2dea 100644 --- a/src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java +++ b/src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java @@ -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); } } \ No newline at end of file