Skip to content

Commit

Permalink
Run close on render thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Nov 14, 2024
1 parent 320f6de commit 18d5468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fabric/src/main/java/com/noxcrew/noxesium/NoxesiumMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.common.base.Preconditions;
import com.mojang.blaze3d.shaders.CompiledShader;
import com.mojang.blaze3d.systems.RenderSystem;
import com.noxcrew.noxesium.api.protocol.ClientSettings;
import com.noxcrew.noxesium.api.protocol.ProtocolVersion;
import com.noxcrew.noxesium.config.NoxesiumConfig;
Expand Down Expand Up @@ -190,7 +191,7 @@ public void onInitializeClient() {

// Clear out all UI rendering state when we start configuring
ClientConfigurationConnectionEvents.START.register((ignored1, ignored2) -> {
NoxesiumMod.forEachRenderStateHolder(NoxesiumRenderStateHolder::clear);
RenderSystem.recordRenderCall(() -> NoxesiumMod.forEachRenderStateHolder(NoxesiumRenderStateHolder::clear));
});

// Call disconnection hooks
Expand Down

0 comments on commit 18d5468

Please sign in to comment.