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)