fix Omni-Tool, Rockcutter and Jackhammer being damageable (#2368). Thanks to Fourmisain
This commit is contained in:
parent
c80564484e
commit
50ef178191
3 changed files with 8 additions and 3 deletions
|
@ -57,7 +57,7 @@ public class JackhammerItem extends PickaxeItem implements EnergyHolder, ItemDur
|
||||||
protected final float unpoweredSpeed = 0.5F;
|
protected final float unpoweredSpeed = 0.5F;
|
||||||
|
|
||||||
public JackhammerItem(int energyCapacity, EnergyTier tier, int cost) {
|
public JackhammerItem(int energyCapacity, EnergyTier tier, int cost) {
|
||||||
super(ToolMaterials.DIAMOND, (int) ToolMaterials.DIAMOND.getAttackDamage(), 1F, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1));
|
super(ToolMaterials.DIAMOND, (int) ToolMaterials.DIAMOND.getAttackDamage(), 1F, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1).maxDamage(-1));
|
||||||
this.maxCharge = energyCapacity;
|
this.maxCharge = energyCapacity;
|
||||||
this.tier = tier;
|
this.tier = tier;
|
||||||
this.cost = cost;
|
this.cost = cost;
|
||||||
|
@ -111,6 +111,11 @@ public class JackhammerItem extends PickaxeItem implements EnergyHolder, ItemDur
|
||||||
}
|
}
|
||||||
|
|
||||||
// Item
|
// Item
|
||||||
|
@Override
|
||||||
|
public boolean isDamageable() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnchantable(ItemStack stack) {
|
public boolean isEnchantable(ItemStack stack) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class RockCutterItem extends PickaxeItem implements EnergyHolder, ItemDur
|
||||||
|
|
||||||
// 400k FE with 1k FE\t charge rate
|
// 400k FE with 1k FE\t charge rate
|
||||||
public RockCutterItem() {
|
public RockCutterItem() {
|
||||||
super(ToolMaterials.DIAMOND, 1, 1, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1));
|
super(ToolMaterials.DIAMOND, 1, 1, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1).maxDamage(-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
// PickaxeItem
|
// PickaxeItem
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class OmniToolItem extends PickaxeItem implements EnergyHolder, ItemDurab
|
||||||
|
|
||||||
// 4M FE max charge with 1k charge rate
|
// 4M FE max charge with 1k charge rate
|
||||||
public OmniToolItem() {
|
public OmniToolItem() {
|
||||||
super(ToolMaterials.DIAMOND, 3, 1, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1));
|
super(ToolMaterials.DIAMOND, 3, 1, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1).maxDamage(-1));
|
||||||
this.miningLevel = MiningLevel.DIAMOND.intLevel;
|
this.miningLevel = MiningLevel.DIAMOND.intLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue