diff --git a/src/main/kotlin/gg/essential/elementa/WindowScreen.kt b/src/main/kotlin/gg/essential/elementa/WindowScreen.kt index bfacc28e..e4488e5d 100644 --- a/src/main/kotlin/gg/essential/elementa/WindowScreen.kt +++ b/src/main/kotlin/gg/essential/elementa/WindowScreen.kt @@ -48,11 +48,11 @@ abstract class WindowScreen @JvmOverloads constructor( afterInitialization() } - super.onDrawScreen(matrixStack, mouseX, mouseY, partialTicks) - if (drawDefaultBackground) super.onDrawBackground(matrixStack, 0) + super.onDrawScreen(matrixStack, mouseX, mouseY, partialTicks) + // Now, we need to hook up Elementa to this GuiScreen. In practice, Elementa // is not constrained to being used solely inside of a GuiScreen, all the programmer // needs to do is call the [Window] events when appropriate, whenever that may be.