From b0e79aa1e66601a710b182c3729e1b2a325c6623 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 29 Mar 2018 11:00:17 +0100 Subject: [PATCH] Fixes chainsaw not working on some wooden blocks, closes #1467 --- src/main/java/techreborn/items/tools/ItemChainsaw.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/items/tools/ItemChainsaw.java b/src/main/java/techreborn/items/tools/ItemChainsaw.java index 9eb0943f9..5c323d87c 100644 --- a/src/main/java/techreborn/items/tools/ItemChainsaw.java +++ b/src/main/java/techreborn/items/tools/ItemChainsaw.java @@ -24,6 +24,7 @@ package techreborn.items.tools; +import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.EntityLivingBase; @@ -85,7 +86,7 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo, IEnergyInt @Override public float getDestroySpeed(ItemStack stack, IBlockState state) { - if (PoweredItem.canUseEnergy(cost, stack) && state.getBlock().isToolEffective("axe", state)) { + if (PoweredItem.canUseEnergy(cost, stack) && (state.getBlock().isToolEffective("axe", state) || state.getMaterial() == Material.WOOD)) { return this.poweredSpeed; } else {