Make a ClickBox.buttons a Set instance

This commit is contained in:
Username404-59 2021-05-01 18:12:50 +02:00
parent b3c7fb1325
commit 833cac5ccd
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import org.lwjgl.opengl.GL20
class ClickBox( class ClickBox(
x: Double, y: Double, x: Double, y: Double,
private val name: TranslatableComponent? = null, private val name: TranslatableComponent? = null,
val buttons: MutableCollection<ClickButton> = mutableListOf() val buttons: MutableCollection<ClickButton> = mutableSetOf()
): ColoredElement(x, y, 80, 10, 0x6C9E9D, 0.5F) { ): ColoredElement(x, y, 80, 10, 0x6C9E9D, 0.5F) {
@JvmField @JvmField
val scrollBar: ColoredElement = object: ColoredElement( val scrollBar: ColoredElement = object: ColoredElement(