diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/LazyList.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/LazyList.kt index 12bc5416f..94c869bfd 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/LazyList.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/LazyList.kt @@ -16,6 +16,10 @@ class LazyList : AbstractList { this.getters = Array(getters.size) { getters[it] } } + constructor(size: Int, provider: (Int) -> () -> T) { + this.getters = Array(size, provider) + } + override val size: Int get() = getters.size