mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 08:28:34 +01:00
set harvest level for all tool types
This commit is contained in:
parent
2d5b8c1d92
commit
0e1a4c94be
1 changed files with 8 additions and 2 deletions
|
@ -45,7 +45,7 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
|
||||||
this.color = color;
|
this.color = color;
|
||||||
|
|
||||||
this.setMaxDamage(this.getMaxDamage()*4);
|
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){
|
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.color = color;
|
||||||
|
|
||||||
this.setMaxDamage(this.getMaxDamage()*4);
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue