Use faster int set
This commit is contained in:
parent
cbc1c634d2
commit
1afdcbe058
@ -1,6 +1,7 @@
|
||||
package ru.dbotthepony.mc.otm.block.entity.storage
|
||||
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectAVLTreeMap
|
||||
import it.unimi.dsi.fastutil.ints.IntAVLTreeSet
|
||||
import it.unimi.dsi.fastutil.ints.IntArraySet
|
||||
import it.unimi.dsi.fastutil.longs.Long2ObjectAVLTreeMap
|
||||
import net.minecraft.core.BlockPos
|
||||
@ -237,7 +238,7 @@ class StorageBusBlockEntity(blockPos: BlockPos, blockState: BlockState) : Matter
|
||||
}
|
||||
|
||||
private inner class PrioritizedSlotIterator(tuple: TrackedTuple?) : Iterator<Int> {
|
||||
private val tupleIndexes = IntArraySet()
|
||||
private val tupleIndexes = IntAVLTreeSet()
|
||||
|
||||
init {
|
||||
if (tuple != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user