#573 Turbines now explode when producing more EU than dynamo can handle

This commit is contained in:
Blood-Asp 2016-08-22 23:01:29 +02:00
parent 9ff430c80d
commit 49e5b53706
2 changed files with 5 additions and 1 deletions

View file

@ -496,7 +496,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
if (aEU <= 0) return true; if (aEU <= 0) return true;
for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) { for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) {
if (isValidMetaTileEntity(tHatch)) { if (isValidMetaTileEntity(tHatch)) {
if (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(aEU, false)) { if (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(aEU, true)) {
return true; return true;
} }
} }

View file

@ -162,6 +162,10 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
} else { } else {
this.mMaxProgresstime = 1; this.mMaxProgresstime = 1;
this.mEfficiencyIncrease = (10); this.mEfficiencyIncrease = (10);
if(this.mDynamoHatches.size()>0){
if(this.mDynamoHatches.get(0).getBaseMetaTileEntity().getOutputVoltage() < (mEUt * mEfficiency) / 10000){
explodeMultiblock();}
}
return true; return true;
} }
} }