Fix chainsaw speed on nether wood. Closes #2359

This commit is contained in:
drcrazy 2021-03-21 03:46:51 +03:00
parent 585f149c16
commit ead39e98c4

View file

@ -68,7 +68,7 @@ public class ChainsawItem extends AxeItem implements EnergyHolder, ItemDurabilit
@Override
public float getMiningSpeedMultiplier(ItemStack stack, BlockState state) {
if (Energy.of(stack).getEnergy() >= cost
&& (state.getMaterial() == Material.WOOD)) {
&& (state.getMaterial() == Material.WOOD || state.getMaterial() == Material.NETHER_WOOD)) {
return poweredSpeed;
}
return unpoweredSpeed;