diff --git a/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager.java b/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager.java index a3380f051b..0376e27b95 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager.java @@ -27,6 +27,7 @@ import me.jellysquid.mods.sodium.client.render.chunk.terrain.TerrainRenderPass; import me.jellysquid.mods.sodium.client.render.chunk.vertex.format.ChunkMeshFormats; import me.jellysquid.mods.sodium.client.render.texture.SpriteUtil; +import me.jellysquid.mods.sodium.client.render.util.RenderAsserts; import me.jellysquid.mods.sodium.client.render.viewport.CameraTransform; import me.jellysquid.mods.sodium.client.render.viewport.Viewport; import me.jellysquid.mods.sodium.client.util.MathUtil; @@ -434,6 +435,8 @@ public int getVisibleChunkCount() { } public void scheduleRebuild(int x, int y, int z, boolean important) { + RenderAsserts.validateCurrentThread(); + this.sectionCache.invalidate(x, y, z); RenderSection section = this.sectionByPosition.get(ChunkSectionPos.asLong(x, y, z));