Fix Fusion reactor possibly taking damage.

This commit is contained in:
Blood-Asp 2018-02-12 23:25:37 +01:00
parent a205cbccd0
commit 632d9fc754

View file

@ -330,7 +330,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
stopMachine(); stopMachine();
} }
if (getRepairStatus() > 0) { if (getRepairStatus() > 0) {
if (mMaxProgresstime > 0 && doRandomMaintenanceDamage()) { if (mMaxProgresstime > 0) {
this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(mEUt, true); this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(mEUt, true);
if (mMaxProgresstime > 0 && ++mProgresstime >= mMaxProgresstime) { if (mMaxProgresstime > 0 && ++mProgresstime >= mMaxProgresstime) {
if (mOutputItems != null) if (mOutputItems != null)