Skip to content

Commit

Permalink
fix dumbness
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Feb 27, 2022
1 parent 696d507 commit c47d8a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ public VerticalBlockSample getColumnSample(int x, int z, HeightLimitView world)

public abstract CompletableFuture<Chunk> populateNoise(Executor executor, Chunk chunk, ChunkStatus targetStatus, ServerWorld world, ChunkRegion chunkRegion, StructureManager structureManager, ServerLightingProvider lightingProvider);

public abstract <T extends LiminalChunkGenerator> void buildSurface(ChunkStatus targetStatus, ServerWorld world, T generator, Chunk chunk);
public <T extends LiminalChunkGenerator> void buildSurface(ChunkRegion chunkRegion, ChunkStatus targetStatus, ServerWorld world, T generator, Chunk chunk) {
}

public abstract <T extends LiminalChunkGenerator> void carve(ChunkStatus targetStatus, ServerWorld world, T generator, Chunk chunk);
public <T extends LiminalChunkGenerator> void carve(ChunkRegion chunkRegion, ChunkStatus targetStatus, ServerWorld world, T generator, Chunk chunk) {
}

public int getChunkRadius() {
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public class ChunkStatusMixin {
nbtChunkGenerator.storeStructures(world);
}
}
new ChunkRegion(world, chunks, targetStatus, liminalChunkGenerator.getChunkRadius());
liminalChunkGenerator.buildSurface(targetStatus, world, liminalChunkGenerator, chunk);
liminalChunkGenerator.buildSurface(new ChunkRegion(world, chunks, targetStatus, liminalChunkGenerator.getChunkRadius()), targetStatus, world, liminalChunkGenerator, chunk);
ci.cancel();
}
}
Expand All @@ -77,8 +76,7 @@ public class ChunkStatusMixin {
nbtChunkGenerator.storeStructures(world);
}
}
new ChunkRegion(world, chunks, targetStatus, liminalChunkGenerator.getChunkRadius());
liminalChunkGenerator.carve(targetStatus, world, liminalChunkGenerator, chunk);
liminalChunkGenerator.carve(new ChunkRegion(world, chunks, targetStatus, liminalChunkGenerator.getChunkRadius()), targetStatus, world, liminalChunkGenerator, chunk);
ci.cancel();
}
}
Expand Down

0 comments on commit c47d8a2

Please sign in to comment.