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, percentage,
eta, eta,
chunkSpeed!!, chunkSpeed!!,
genTask.lastChunk.x, genTask.lastChunkCoords.x,
genTask.lastChunk.z)) genTask.lastChunkCoords.z))
saveProgressToDatabase(genTask.lastChunkCoords, task.id) saveProgressToDatabase(genTask.lastChunkCoords, task.id)
genTask.updateLastChunkMarker() genTask.updateLastChunkMarker()
} catch (error: Exception) { } catch (error: Exception) {

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

Loading…
Cancel
Save