diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-12 22:48:07 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-12 22:48:07 +0200 |
commit | 0decd04bc348f957ef94a9a4beba5e3f829da718 (patch) | |
tree | b2fc85671d3748e5a15a64c4f42437307a960c76 /src/main/kotlin/moe/nea/firmament/compat | |
parent | b8a45b9a0438a12ba3c609f6e416d519829471be (diff) | |
download | Firmament-0decd04bc348f957ef94a9a4beba5e3f829da718.tar.gz Firmament-0decd04bc348f957ef94a9a4beba5e3f829da718.tar.bz2 Firmament-0decd04bc348f957ef94a9a4beba5e3f829da718.zip |
Fix sodium reloadin
[no changelog]
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/compat')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/compat/SodiumChunkReloader.kt | 12 |
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) + } +} |