aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/compat
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/compat')
-rw-r--r--src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt12
1 files changed, 12 insertions, 0 deletions
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)
+ }
+}