aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2017-09-13 21:35:44 +0200
committerTechnus <daniel112092@gmail.com>2017-09-13 21:36:39 +0200
commite04bbf02c3b4f864408e3c69eb59ee8c790e97ab (patch)
treecd47b5b207fea4e109f4bb550882ae1459932f88 /src
parent83f34e14360f4a17a6e1c248ec99cb059ddfe59f (diff)
downloadGT5-Unofficial-e04bbf02c3b4f864408e3c69eb59ee8c790e97ab.tar.gz
GT5-Unofficial-e04bbf02c3b4f864408e3c69eb59ee8c790e97ab.tar.bz2
GT5-Unofficial-e04bbf02c3b4f864408e3c69eb59ee8c790e97ab.zip
more descriptive argument name
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/GT_UndergroundOil.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/gregtech/common/GT_UndergroundOil.java b/src/main/java/gregtech/common/GT_UndergroundOil.java
index cb51098bd1..f090498a4e 100644
--- a/src/main/java/gregtech/common/GT_UndergroundOil.java
+++ b/src/main/java/gregtech/common/GT_UndergroundOil.java
@@ -29,13 +29,13 @@ public class GT_UndergroundOil {
return undergroundOil(chunk,-1);
}
- public static FluidStack undergroundOil(IGregTechTileEntity te, float drainSpeedCoefficient){
- return undergroundOil(te.getWorld().getChunkFromBlockCoords(te.getXCoord(),te.getZCoord()),drainSpeedCoefficient);
+ public static FluidStack undergroundOil(IGregTechTileEntity te, float readOrDrainCoefficient){
+ return undergroundOil(te.getWorld().getChunkFromBlockCoords(te.getXCoord(),te.getZCoord()),readOrDrainCoefficient);
}
//Returns whole content for information purposes -> when drainSpeedCoeff < 0
//Else returns extracted fluidStack if amount > 0, or null otherwise
- public static FluidStack undergroundOil(Chunk chunk, float drainSpeedCoefficient) {
+ public static FluidStack undergroundOil(Chunk chunk, float readOrDrainCoefficient) {
if (GT_Mod.gregtechproxy.mUndergroundOil.CheckBlackList(chunk.worldObj.provider.dimensionId)) return null;
World aWorld = chunk.worldObj;
@@ -51,7 +51,7 @@ public class GT_UndergroundOil {
if(tInts==null) tInts=getDefaultChunkDataOnCreation();//init if null
else if(tInts[GTOIL]==0){//FAST stop
//can return 0 amount stack for info :D
- return drainSpeedCoefficient>=0 ? null : new FluidStack(FluidRegistry.getFluid(tInts[GTOILFLUID]),0);
+ return readOrDrainCoefficient>=0 ? null : new FluidStack(FluidRegistry.getFluid(tInts[GTOILFLUID]),0);
}
//GEN IT TO GET OBJECT...
@@ -81,9 +81,9 @@ public class GT_UndergroundOil {
}
//do stuff on it if needed
- if(drainSpeedCoefficient>=0){
- int fluidExtracted=(int)Math.floor(fluidInChunk.amount * (double) drainSpeedCoefficient / DIVIDER);
- double averageDecrease=uoFluid.DecreasePerOperationAmount * (double)drainSpeedCoefficient;
+ if(readOrDrainCoefficient>=0){
+ int fluidExtracted=(int)Math.floor(fluidInChunk.amount * (double) readOrDrainCoefficient / DIVIDER);
+ double averageDecrease=uoFluid.DecreasePerOperationAmount * (double)readOrDrainCoefficient;
int decrease=(int)Math.ceil(averageDecrease);
if(fluidExtracted<=0 || fluidInChunk.amount<=decrease){//decrease - here it is max value of extraction for easy check
fluidInChunk=null;