Remove unnecessary unchecked cast

This commit is contained in:
DBotThePony 2023-08-20 23:49:59 +07:00
parent 74cf2b42d0
commit c760348f72
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -182,7 +182,7 @@ abstract class MatteryMenu(
inner class SortInput(val container: Container, settings: IItemStackSortingSettings?) {
val settings = IItemStackSortingSettings.inputs(this@MatteryMenu, settings)
val input = PlayerInput(CollectionStreamCodec(VarIntValueCodec, ::IntArrayList) as IStreamCodec<IntCollection>) {
val input = PlayerInput(CollectionStreamCodec<Int, IntCollection>(VarIntValueCodec, ::IntArrayList)) {
container.sortWithIndices(it)
}