From bfc95e0ce1856c9780afb1aa306eab4cf29ce593 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Fri, 2 Sep 2022 02:26:31 +0300 Subject: [PATCH] Fix GT axes using proper MCP name for break speed function override. --- src/main/java/gregtechmod/common/items/GT_Vanilla_Axe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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