diff --git a/src/main/kotlin/net/trivernis/chunkmaster/ChunkmasterEvents.kt b/src/main/kotlin/net/trivernis/chunkmaster/ChunkmasterEvents.kt index f139d22..3232bdf 100644 --- a/src/main/kotlin/net/trivernis/chunkmaster/ChunkmasterEvents.kt +++ b/src/main/kotlin/net/trivernis/chunkmaster/ChunkmasterEvents.kt @@ -52,17 +52,4 @@ class ChunkmasterEvents(private val chunkmaster: Chunkmaster, private val server } } } - - /** - * Unload all chunks before a save. - */ - @EventHandler - fun onWorldSave(event: WorldSaveEvent) { - val task = chunkmaster.generationManager.tasks.find { it.generationTask.world == event.world } - if (task != null) { - if (task.generationTask is GenerationTaskPaper) { - task.generationTask.unloadAllChunks() - } - } - } } \ No newline at end of file