Make callback be mutable property

This commit is contained in:
DBotThePony 2023-07-18 00:52:42 +07:00
parent 4daa0be19a
commit 6a5924267a
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -500,7 +500,7 @@ open class ColorPickerPanel<out S : Screen>(
y: Float = 0f,
width: Float = 164f,
height: Float = 118f,
val callback: Consumer<RGBAColor>? = null
var callback: Consumer<RGBAColor>? = null
) : EditablePanel<S>(screen, parent, x, y, width, height) {
open fun onColorChanged(color: RGBAColor) {
callback?.accept(color)