From 0decd04bc348f957ef94a9a4beba5e3f829da718 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 12 Aug 2024 22:48:07 +0200 Subject: Fix sodium reloadin [no changelog] --- .../kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt (limited to 'src/main/kotlin/moe/nea/firmament/compat') diff --git a/src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt b/src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt new file mode 100644 index 0000000..4bb231a --- /dev/null +++ b/src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt @@ -0,0 +1,12 @@ +package moe.nea.firmament.compat + +import me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer +import moe.nea.firmament.mixins.accessor.sodium.AccessorSodiumWorldRenderer + +class SodiumChunkReloader : Runnable { + override fun run() { + (SodiumWorldRenderer.instanceNullable() as AccessorSodiumWorldRenderer) + .renderSectionManager_firmament + .updateChunks(false) + } +} -- cgit