Fix grass being buried under tiles

This commit is contained in:
DBotThePony 2024-04-22 20:50:20 +07:00
parent 9d049ec3aa
commit dfcc59d218
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -195,16 +195,16 @@ class ServerChunk(world: ServerWorld, pos: ChunkPos) : Chunk<ServerWorld, Server
ChunkState.FULL -> {
CompletableFuture.runAsync(Runnable { finalizeCells() }, Starbound.EXECUTOR).await()
// skip if we have no layout
if (world.template.worldLayout != null) {
placeGrass()
}
// skip if we have no layout, or it is a floating dungeon world
if (world.template.worldLayout != null && world.template.worldParameters !is FloatingDungeonWorldParameters) {
placeBiomeItems()
}
// skip if we have no layout
if (world.template.worldLayout != null) {
placeGrass()
}
signalChunkContentsUpdated()
}