#573 Turbines now explode when producing more EU than dynamo can handle
This commit is contained in:
parent
9ff430c80d
commit
49e5b53706
2 changed files with 5 additions and 1 deletions
|
@ -496,7 +496,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
if (aEU <= 0) return true;
|
||||
for (GT_MetaTileEntity_Hatch_Dynamo tHatch : mDynamoHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
if (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(aEU, false)) {
|
||||
if (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(aEU, true)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,6 +162,10 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
|
|||
} else {
|
||||
this.mMaxProgresstime = 1;
|
||||
this.mEfficiencyIncrease = (10);
|
||||
if(this.mDynamoHatches.size()>0){
|
||||
if(this.mDynamoHatches.get(0).getBaseMetaTileEntity().getOutputVoltage() < (mEUt * mEfficiency) / 10000){
|
||||
explodeMultiblock();}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue