mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-12 18:56:04 +00:00
fix fabric protoworld impl
This commit is contained in:
@@ -193,11 +193,11 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
|
||||
@Override
|
||||
public CompletableFuture<Chunk> populateNoise(Executor executor, Blender arg, StructureAccessor structureAccessor, Chunk chunk) {
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
World world = (World) ((StructureAccessorAccessor) structureAccessor).getWorld();
|
||||
ProtoWorld world = (ProtoWorld) ((StructureAccessorAccessor) structureAccessor).getWorld();
|
||||
delegate.generateChunkData((ProtoChunk) chunk, world, chunk.getPos().z, chunk.getPos().x);
|
||||
delegate.getGenerationStages().forEach(populator -> {
|
||||
if(populator instanceof Chunkified) {
|
||||
populator.populate((ProtoWorld) world);
|
||||
populator.populate(world);
|
||||
}
|
||||
});
|
||||
return chunk;
|
||||
|
||||
@@ -138,15 +138,15 @@ public abstract class ChunkRegionMixin {
|
||||
.getBiomeSource()).getProvider();
|
||||
}
|
||||
|
||||
public int terra$getCenterChunkX() {
|
||||
public int terraWorld$centerChunkX() {
|
||||
return centerPos.getPos().x;
|
||||
}
|
||||
|
||||
public int terra$getCenterChunkZ() {
|
||||
public int terraWorld$centerChunkZ() {
|
||||
return centerPos.getPos().z;
|
||||
}
|
||||
|
||||
public World terra$getWorld() {
|
||||
public World terraWorld$getWorld() {
|
||||
return (World) world;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user