diff options
author | Technus <daniel112092@gmail.com> | 2016-11-04 13:35:03 +0100 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2016-11-04 13:35:03 +0100 |
commit | d72eef6662306e38981c89c7a0f959d05bf9c9a4 (patch) | |
tree | ab9deac1a2fb4c16f4ece46a3aa4ec516ae60604 /src | |
parent | eac4226c168b6498531468b727c8b8e87c69a143 (diff) | |
download | GT5-Unofficial-d72eef6662306e38981c89c7a0f959d05bf9c9a4.tar.gz GT5-Unofficial-d72eef6662306e38981c89c7a0f959d05bf9c9a4.tar.bz2 GT5-Unofficial-d72eef6662306e38981c89c7a0f959d05bf9c9a4.zip |
I like my non zero values every where ;]
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Utility.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index 3e8d5ad83a..95463d2fe3 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -1568,12 +1568,9 @@ public class GT_Utility { private static FluidStack setUndergroundOil(World aWorld, int aX, int aZ,ChunkPosition tPos,int[] tInts) { XSTR tRandom = new XSTR(aWorld.getSeed() ^ ((long)(aX / 6) + (long)(7000 * (aZ / 6)))); int type=tRandom.nextInt(5);//type slowly changes - int amnt = tRandom.nextInt(50); - if (amnt<12)amnt=0; - else { - double bloodAspAmnt=Math.pow((double)amnt+(new XSTR()).nextDouble(),5D)/100D; - amnt = (int)(Math.ceil(Math.pow(bloodAspAmnt, 2D)/50000D)); - } + int amnt = tRandom.nextInt(48); + double bloodAspAmnt=Math.pow(2D+(double)amnt+(new XSTR()).nextDouble(),5D)/100D; + amnt = (int)(Math.ceil(Math.pow(bloodAspAmnt, 2D)/50000D)); //roughly uses 28 bits FluidStack tFluidStack; switch (type) {//0 is old system |