Small fusion reactor fixes

This commit is contained in:
Blood-Asp 2017-03-23 12:16:21 +01:00
parent 9c91a6cea2
commit 7c67f95c93
5 changed files with 11 additions and 4 deletions

View file

@ -34,6 +34,13 @@ public class GT_GUIContainer_FusionReactor extends GT_GUIContainerMetaTile_Machi
fontRendererObj.drawString("Running perfectly.", 10, 170, 16448255);
}
}
if(this.mContainer.mEnergy > 160000000 && this.mContainer.mEnergy < 160010000)
fontRendererObj.drawString("160,000,000 EU", 50, 155, 0x00ff0000);
else if(this.mContainer.mEnergy > 320000000 && this.mContainer.mEnergy < 320010000)
fontRendererObj.drawString("320,000,000 EU", 50, 155, 0x00ff0000);
else if(this.mContainer.mEnergy > 640000000 && this.mContainer.mEnergy < 640010000)
fontRendererObj.drawString("640,000,000 EU", 50, 155, 0x00ff0000);
else
fontRendererObj.drawString(GT_Utility.formatNumbers(this.mContainer.mEnergy) + " EU", 50, 155, 0x00ff0000);
}
}

View file

@ -252,7 +252,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
if (tFluidList.size() > 1) {
FluidStack[] tFluids = tFluidList.toArray(new FluidStack[tFluidList.size()]);
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes.findRecipe(this.getBaseMetaTileEntity(), this.mLastRecipe, false, GT_Values.V[8], tFluids, new ItemStack[]{});
if (tRecipe == null && !mRunningOnLoad) {
if ((tRecipe == null && !mRunningOnLoad) || (maxEUStore() < tRecipe.mSpecialValue)) {
turnCasingActive(false);
this.mLastRecipe = null;
return false;

View file

@ -24,7 +24,7 @@ public class GT_MetaTileEntity_FusionComputer1 extends GT_MetaTileEntity_FusionC
@Override
public long maxEUStore() {
return 160000000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
return 160003000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
}
@Override

View file

@ -24,7 +24,7 @@ public class GT_MetaTileEntity_FusionComputer2 extends GT_MetaTileEntity_FusionC
@Override
public long maxEUStore() {
return 320000000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
return 320006000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
}
@Override

View file

@ -24,7 +24,7 @@ public class GT_MetaTileEntity_FusionComputer3 extends GT_MetaTileEntity_FusionC
@Override
public long maxEUStore() {
return 640000000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
return 640010000L * (Math.min(16, this.mEnergyHatches.size())) / 16L;
}
@Override