Merge branch 'experimental' of https://github.com/Blood-Asp/GT5-Unofficial into experimental

This commit is contained in:
Blood-Asp 2016-09-13 00:29:46 +02:00
commit 4091b39401
5 changed files with 13 additions and 13 deletions

View file

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

View file

@ -114,9 +114,9 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT
if (efficiency < 0) if (efficiency < 0)
efficiency = 0; // Can happen with really ludicrously poor inefficiency. efficiency = 0; // Can happen with really ludicrously poor inefficiency.
tEU *= efficiency; tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 10000); tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 10000L));
} else { } else {
tEU = tEU * aBaseEff / 10000; tEU = (int)((long)tEU * (long)aBaseEff / 10000L);
} }
return tEU; return tEU;

View file

@ -103,9 +103,9 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La
float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow)); float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow));
if(totalFlow>aOptFlow){efficiency = 1.0f;} if(totalFlow>aOptFlow){efficiency = 1.0f;}
tEU *= efficiency; tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 10000); tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 10000L));
} else { } else {
tEU = tEU * aBaseEff / 10000; tEU = (int)((long)tEU * (long)aBaseEff / 10000L);
} }
return tEU; return tEU;

View file

@ -130,9 +130,9 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar
if (efficiency < 0) if (efficiency < 0)
efficiency = 0; // Can happen with really ludicrously poor inefficiency. efficiency = 0; // Can happen with really ludicrously poor inefficiency.
tEU *= efficiency; tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 10000); tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 10000L));
} else { } else {
tEU = tEU * aBaseEff / 10000; tEU = (int)((long)tEU * (long)aBaseEff / 10000L);
} }
return tEU; return tEU;

View file

@ -111,9 +111,9 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg
float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow)); float efficiency = 1.0f - Math.abs(((totalFlow - (float) aOptFlow) / aOptFlow));
if(totalFlow>aOptFlow){efficiency = 1.0f;} if(totalFlow>aOptFlow){efficiency = 1.0f;}
tEU *= efficiency; tEU *= efficiency;
tEU = Math.max(1, tEU * aBaseEff / 20000); tEU = Math.max(1, (int)((long)tEU * (long)aBaseEff / 20000L));
} else { } else {
tEU = tEU * aBaseEff / 20000; tEU = (int)((long)tEU * (long)aBaseEff / 20000L);
} }
return tEU; return tEU;