Skip to content

Commit

Permalink
feat: Add entity population during chunk generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Jul 16, 2024
1 parent 3130ead commit bb0364d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ private void onBlockChange(@NotNull BlockPos blockPos, @NotNull BlockState oldBl
protoChunk.setStatus(ChunkStatus.LIGHT);
serverLightingProvider.light(protoChunk, protoChunk.isLightOn());

protoChunk.setStatus(ChunkStatus.SPAWN);
chunkGenerator.populateEntities(chunkRegion);

protoChunk.setStatus(ChunkStatus.FULL);
pointOfInterestStorage.saveChunk(chunkPos);
versionedChunkStorage.setNbt(chunkPos, ChunkSerializer.serialize(serverWorld, protoChunk));
Expand Down

0 comments on commit bb0364d

Please sign in to comment.