diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemAxe.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemAxe.java index 6b444db9..de63ff0d 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemAxe.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemAxe.java @@ -21,12 +21,10 @@ public class ItemAxe extends AxeItem implements IModItem, ICustomItemModel { private final String baseName; - private final float defaultSpeed; public ItemAxe(String baseName, Tier material, float damage, float speed) { super(material, new Properties().attributes(AxeItem.createAttributes(material, damage, speed))); this.baseName = baseName; - this.defaultSpeed = speed; ModRegistry.ALL_ITEMS.add(this); } @@ -38,7 +36,7 @@ public String getBaseName() { @Override public float getDestroySpeed(ItemStack stack, BlockState state) { if (state.is(BlockTags.LEAVES)) { - return this.defaultSpeed; + return this.getTier().getSpeed(); } else { return super.getDestroySpeed(stack, state); }