Merge pull request #789 from codewarrior0/patch-7

Fix #785 - Unlimited EU in Dynamo Hatch
This commit is contained in:
Blood-Asp 2016-12-12 16:56:39 +01:00 committed by GitHub
commit c6fab8b6ff

View file

@ -491,7 +491,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, true)) {
if (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(aEU, false)) {
return true;
}
}