diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemAllToolAA.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemAllToolAA.java index d7ba6c9cf..8cdc98f1c 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemAllToolAA.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemAllToolAA.java @@ -45,7 +45,7 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{ this.color = color; this.setMaxDamage(this.getMaxDamage()*4); - this.setHarvestLevel("pickaxe", toolMat.getHarvestLevel()); + this.setHarvestLevels(toolMat.getHarvestLevel()); } public ItemAllToolAA(ToolMaterial toolMat, ItemStack repairItem, String unlocalizedName, EnumRarity rarity, int color){ @@ -53,7 +53,13 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{ this.color = color; this.setMaxDamage(this.getMaxDamage()*4); - this.setHarvestLevel("pickaxe", toolMat.getHarvestLevel()); + this.setHarvestLevels(toolMat.getHarvestLevel()); + } + + private void setHarvestLevels(int amount){ + for(String s : this.getToolClasses(null)){ + this.setHarvestLevel(s, amount); + } } @Override