From 833cac5ccda6335ebd0f0a68b727f152553c62e2 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 1 May 2021 18:12:50 +0200 Subject: [PATCH] Make a ClickBox.buttons a Set instance --- .../kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt index 9650343..0fefb27 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt @@ -16,7 +16,7 @@ import org.lwjgl.opengl.GL20 class ClickBox( x: Double, y: Double, private val name: TranslatableComponent? = null, - val buttons: MutableCollection = mutableListOf() + val buttons: MutableCollection = mutableSetOf() ): ColoredElement(x, y, 80, 10, 0x6C9E9D, 0.5F) { @JvmField val scrollBar: ColoredElement = object: ColoredElement(