File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/kotlin/com/lambda
config/settings/collections Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,11 +118,11 @@ open class CollectionSetting<R : Any>(
118118 }
119119
120120 companion object {
121- fun <T : Any > Setting <CollectionSetting < T > , MutableCollection<T >>.onSelect (block : SafeContext .(T ) -> Unit ) = apply {
121+ fun <T : CollectionSetting < R >, R : Any > Setting <T , MutableCollection <R >>.onSelect (block : SafeContext .(R ) -> Unit ) = apply {
122122 core.selectListeners.add(block)
123123 }
124124
125- fun <T : Any > Setting <CollectionSetting < T > , MutableCollection<T >>.onDeselect (block : SafeContext .(T ) -> Unit ) = apply {
125+ fun <T : CollectionSetting < R >, R : Any > Setting <T , MutableCollection <R >>.onDeselect (block : SafeContext .(R ) -> Unit ) = apply {
126126 core.deselectListeners.add(block)
127127 }
128128
Original file line number Diff line number Diff line change 1818package com.lambda.module.modules.render
1919
2020import com.lambda.Lambda.mc
21- import com.lambda.config.serializer.BlockCodec
21+ import com.lambda.config.settings.collections.CollectionSetting.Companion.onDeselect
22+ import com.lambda.config.settings.collections.CollectionSetting.Companion.onSelect
2223import com.lambda.context.SafeContext
2324import com.lambda.graphics.renderer.esp.ChunkedESP.Companion.newChunkedESP
2425import com.lambda.graphics.renderer.esp.DirectionMask
You can’t perform that action at this time.
0 commit comments