Improve performance of periodical chunk progress saving task

pull/55/head
trivernis 5 years ago
parent 572369192a
commit 0347730580

@ -307,8 +307,8 @@ class GenerationManager(private val chunkmaster: Chunkmaster, private val server
percentage,
eta,
chunkSpeed!!,
genTask.lastChunk.x,
genTask.lastChunk.z))
genTask.lastChunkCoords.x,
genTask.lastChunkCoords.z))
saveProgressToDatabase(genTask.lastChunkCoords, task.id)
genTask.updateLastChunkMarker()
} catch (error: Exception) {

@ -116,8 +116,8 @@ abstract class GenerationTask(
markerSet?.creUpdateAreMarker(
markerLastId,
markerLastName,
this.lastChunk.getBlock(0, 0, 0).location,
this.lastChunk.getBlock(15, 0, 15).location,
this.lastChunkCoords.getCenterLocation(world).chunk.getBlock(0, 0, 0).location,
this.lastChunkCoords.getCenterLocation(world).chunk.getBlock(15, 0, 15).location,
markerLastStyle
)
}

Loading…
Cancel
Save