Actually use this method to do what it does.
This commit is contained in:
parent
eab5b01037
commit
a8217117fa
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage(mInventory[1], (long) Math.min(mEUt / this.damageFactorLow, Math.pow(mEUt, this.damageFactorHigh)));
|
((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage(mInventory[1], (long)getDamageToComponent(mInventory[1]) * (long) Math.min(mEUt / this.damageFactorLow, Math.pow(mEUt, this.damageFactorHigh)));
|
||||||
if (mInventory[1].stackSize == 0) mInventory[1] = null;
|
if (mInventory[1].stackSize == 0) mInventory[1] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue