Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
-Cubic Chunks compat
Browse files Browse the repository at this point in the history
  • Loading branch information
CorgiTaco committed Nov 20, 2020
1 parent 65870eb commit 06c7b34
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.Heightmap;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.gen.surfacebuilder.SurfaceBuilder;
Expand Down Expand Up @@ -36,7 +35,7 @@ public void generate(Random random, Chunk chunkIn, Biome biomeIn, int x, int z,

float sampleNoise = noiseGen.GetNoise(fnVector3f.x, fnVector3f.z);

int groundLevel = chunkIn.sampleHeightmap(Heightmap.Type.OCEAN_FLOOR_WG, x, z);
int groundLevel = startHeight - 3;

if (sampleNoise < 0.43) {
int valueToReverse = (int) (Math.abs((int) (sampleNoise * 645D) * 1.8));
Expand Down

0 comments on commit 06c7b34

Please sign in to comment.