From 6a5924267a597851b1dd066b0b174faa34703fc2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 18 Jul 2023 00:52:42 +0700 Subject: [PATCH] Make callback be mutable property --- .../ru/dbotthepony/mc/otm/client/screen/panels/ColorPicker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ColorPicker.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ColorPicker.kt index af60b2190..df4bab6d9 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ColorPicker.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ColorPicker.kt @@ -500,7 +500,7 @@ open class ColorPickerPanel( y: Float = 0f, width: Float = 164f, height: Float = 118f, - val callback: Consumer? = null + var callback: Consumer? = null ) : EditablePanel(screen, parent, x, y, width, height) { open fun onColorChanged(color: RGBAColor) { callback?.accept(color)