Use hash map for UUID -> Int
This commit is contained in:
parent
8f8d4b4ac7
commit
3d8035c977
@ -54,6 +54,7 @@ import java.util.*
|
||||
import java.util.stream.Stream
|
||||
import kotlin.collections.ArrayDeque
|
||||
import kotlin.collections.ArrayList
|
||||
import kotlin.collections.HashMap
|
||||
|
||||
@Suppress("unused")
|
||||
class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerializable<CompoundTag> {
|
||||
@ -75,7 +76,7 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
|
||||
private val exoSuitSlotCountModifiersMap: MutableMap<UUID, Int> by synchronizer.Map(
|
||||
keyCodec = UUIDValueCodec,
|
||||
valueCodec = IntValueCodec,
|
||||
backingMap = Object2IntAVLTreeMap(),
|
||||
backingMap = HashMap(),
|
||||
callback = {
|
||||
this.exoSuitSlotCountModifiers.recompute()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user