Browse Source

Stone LAyers now have different RNG per dimension, overworld stays the same

Gregorius Techneticies 2 months ago
parent
commit
c0004ae089
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      CHANGELOG.md
  2. 2
    2
      src/main/java/gregtech/worldgen/NoiseGenerator.java

+ 1
- 0
CHANGELOG.md View File

@@ -12,6 +12,7 @@ Nothing (I tend to only add finished Stuff to the Changelog).
12 12
 6.14.09: (Not released yet, happens whenever a Bugfix needs to be released, Bear is still testing GT6, while I'm working on my Game)
13 13
 [COMPAT] Aroma1997's Mining Dimension is now Compatible with my Worldgen.
14 14
 [FIXED] Chainsaws used WAY too much durability for Treecapitation!
15
+[FIXED] Stone Layers in different Dimensions had the same RNG as on the Overworld.
15 16
 [ADDED] Axes, Saws and Chainsaws can now place Saplings too. They will still place Workbenches if Saplings cant be placed.
16 17
 [ADDED] Tooltip for Covers that can be controlled with the Cover Controller Cover. In case of Covers where the Cover Controller Cover is required (such as Shutter Cover), it will be Cyan instead of Dark Gray to make it easier to see.
17 18
 

+ 2
- 2
src/main/java/gregtech/worldgen/NoiseGenerator.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -29,7 +29,7 @@ public class NoiseGenerator {
29 29
 		mSeed = (int)aSeed;
30 30
 	}
31 31
 	public NoiseGenerator(World aWorld) {
32
-		mSeed = (int)aWorld.getSeed();
32
+		mSeed = (int)(aWorld.getSeed() ^ aWorld.provider.dimensionId);
33 33
 	}
34 34
 	public NoiseGenerator setFrequency(float aFrequency) {
35 35
 		mFrequencyX = aFrequency;

Loading…
Cancel
Save