From 2a3e0b0269a87ae33f91cb6cc450e8fa8cfb5fc9 Mon Sep 17 00:00:00 2001 From: minecraft-simon Date: Sat, 18 Jun 2022 12:46:58 +0200 Subject: [PATCH] Added interface to NewChunks module --- .../client/module/modules/render/NewChunks.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/kotlin/com/lambda/client/module/modules/render/NewChunks.kt b/src/main/kotlin/com/lambda/client/module/modules/render/NewChunks.kt index 9abdf207a..88ebe71c5 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/render/NewChunks.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/render/NewChunks.kt @@ -338,6 +338,22 @@ object NewChunks : Module( return Vec2d((x shl 4).toDouble(), (z shl 4).toDouble()).minus(playerOffset).div(scale.toDouble()) } + fun getChunks(): ConcurrentHashMap { + return chunks + } + + fun addChunk(chunk: ChunkPos) { + chunks[chunk] = System.currentTimeMillis() + } + + fun addChunk(chunk: ChunkPos, time: Long) { + chunks[chunk] = time + } + + fun removeChunk(chunk: ChunkPos) { + chunks.remove(chunk) + } + private fun saveNewChunk(log: PrintWriter?, data: String) { log!!.println(data) }