Performance improvements
- improved performance on paper servers by using chunk coordinates instead of chunk instances to check if the chunk was generated - moved generation stuff to lib/generationpull/1/head
parent
08bec14df9
commit
c49036e35b
@ -0,0 +1,4 @@
|
||||
package net.trivernis.chunkmaster.lib.generation
|
||||
|
||||
data class ChunkCoordinates(val x: Int, val z: Int) {
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package net.trivernis.chunkmaster.lib
|
||||
package net.trivernis.chunkmaster.lib.generation
|
||||
|
||||
import io.papermc.lib.PaperLib
|
||||
import net.trivernis.chunkmaster.Chunkmaster
|
@ -1,11 +1,8 @@
|
||||
package net.trivernis.chunkmaster.lib
|
||||
package net.trivernis.chunkmaster.lib.generation
|
||||
|
||||
import net.trivernis.chunkmaster.Chunkmaster
|
||||
import org.bukkit.Chunk
|
||||
import org.bukkit.World
|
||||
import org.bukkit.scheduler.BukkitRunnable
|
||||
import org.bukkit.scheduler.BukkitTask
|
||||
import java.util.concurrent.CompletableFuture
|
||||
|
||||
class GenerationTaskSpigot(
|
||||
private val plugin: Chunkmaster, override val world: World,
|
@ -1,4 +1,4 @@
|
||||
package net.trivernis.chunkmaster.lib
|
||||
package net.trivernis.chunkmaster.lib.generation
|
||||
|
||||
import org.bukkit.scheduler.BukkitTask
|
||||
|
Loading…
Reference in New Issue