From f409729385c34592d5cbb827ad17ccfaf1a419ca Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 31 May 2024 16:42:05 +0700 Subject: [PATCH] Update rgb -> bgr in Painter screen --- .../mc/otm/client/screen/decorative/PainterScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/decorative/PainterScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/decorative/PainterScreen.kt index 5651c2859..dbec4100b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/decorative/PainterScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/decorative/PainterScreen.kt @@ -50,7 +50,7 @@ class PainterScreen(menu: PainterMenu, inventory: Inventory, title: Component) : override fun innerRender(graphics: MGUIGraphics, mouseX: Float, mouseY: Float, partialTick: Float) { graphics.renderRect(0f, 0f, width, height, color = RGBAColor.DARK_GRAY) - val color = RGBAColor.rgb(dye?.textColor ?: DyeColor.LIGHT_BLUE.textColor) + val color = RGBAColor.bgr(dye?.textColor ?: DyeColor.LIGHT_BLUE.textColor) graphics.renderCheckerboard(0f, 0f, width, height, color = color.copy(alpha = 0.25f))