Fix generate oil around coordinates 0 0
This commit is contained in:
parent
811644f90a
commit
379b6a8bd1
1 changed files with 2 additions and 2 deletions
|
@ -1529,11 +1529,11 @@ public class GT_Utility {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Random tRandom = new Random((aWorld.getSeed() + (aX / 96) + (7 * (aZ / 96))));
|
Random tRandom = new Random((aWorld.getSeed() + ((int)Math.floor(aX / 96.d)) + (7 * ((int)Math.floor(aZ / 96.d)))));
|
||||||
int oil = tRandom.nextInt(3);
|
int oil = tRandom.nextInt(3);
|
||||||
double amount = tRandom.nextInt(50) + tRandom.nextDouble();
|
double amount = tRandom.nextInt(50) + tRandom.nextDouble();
|
||||||
oil = tRandom.nextInt(4);
|
oil = tRandom.nextInt(4);
|
||||||
// System.out.println("Oil: "+(aX/96)+" "+(aZ/96)+" "+oil+" "+amount);
|
// System.out.println("Oil: "+((int)Math.floor(aX/96.d))+" "+((int)Math.floor(aZ/96.d))+" "+oil+" "+amount+"dd");
|
||||||
// amount = 40;
|
// amount = 40;
|
||||||
Fluid tFluid = null;
|
Fluid tFluid = null;
|
||||||
switch (oil) {
|
switch (oil) {
|
||||||
|
|
Loading…
Reference in a new issue