From 4ac6325a41c7e19c09cd6282b27ffe46658b3c0c Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 14 May 2023 16:35:56 +0100 Subject: [PATCH] Fixed T?.toSingletonList() --- eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt b/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt index 48091808..54811549 100644 --- a/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt +++ b/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt @@ -15,5 +15,5 @@ fun create2DList(rows: Int, columns: Int): MutableList> = ListUtils.create2DList(rows, columns) /** @see ListUtils.toSingletonList */ -fun T.toSingletonList(): List = +fun T?.toSingletonList(): List = ListUtils.toSingletonList(this)