diff --git a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/ComposeScreen.kt b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/ComposeScreen.kt index 3c32fd9fc..c18255f2f 100644 --- a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/ComposeScreen.kt +++ b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/ComposeScreen.kt @@ -354,6 +354,10 @@ abstract class ComposeScreen( //~ if >= 26.1 'render' -> 'extractRenderState' override fun extractRenderState(ctx: GuiGraphicsExtractor, mouseX: Int, mouseY: Int, tickDelta: Float) { if (Platform.screen().current() !== this) return + + //? if < 1.21.8 + //renderBackground(ctx, mouseX, mouseY, tickDelta) + if (scenePoisoned) { if (sceneRebuilds >= MAX_SCENE_REBUILDS) { LOGGER.error( diff --git a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/HudEditorUIScreen.kt b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/HudEditorUIScreen.kt index 88e7caa2b..fbd1f7a33 100644 --- a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/HudEditorUIScreen.kt +++ b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/HudEditorUIScreen.kt @@ -99,6 +99,8 @@ class HudEditorUIScreen : ComposeScreen() { // a screen drawn over this one may render it as its parent so skip that pass or it closes the screen above us if (Platform.screen().current() !== this) return if (closeRequested && System.currentTimeMillis() - closeRequestedAt >= closeAnimationMs) { + //? if < 1.21.8 + //renderBackground(ctx, mouseX, mouseY, tickDelta) Platform.screen().close() return } diff --git a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/OneConfigUIScreen.kt b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/OneConfigUIScreen.kt index 421319ae1..0085d39a8 100644 --- a/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/OneConfigUIScreen.kt +++ b/minecraft/src/main/kotlin/org/polyfrost/oneconfig/internal/ui/compose/impls/OneConfigUIScreen.kt @@ -264,6 +264,8 @@ class OneConfigUIScreen @JvmOverloads constructor( // and that would queue a fullscreen blur which smears over the popup so bail unless we are current if (Platform.screen().current() !== this) return if (closeRequested && System.currentTimeMillis() - closeRequestedAt >= closeAnimationMs) { + //? if < 1.21.8 + //renderBackground(ctx, mouseX, mouseY, tickDelta) Platform.screen().close() //? if >= 1.21.8 { // This frame skipped normal HUD rendering because OneConfig was open.