diff --git a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt index 7c78ea1cf3..f29c3c277c 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt @@ -249,7 +249,7 @@ public abstract class NamedEntryCollection( val set = nameHashTable[newNameHash] when { set == null -> nameHashTable[newNameHash] = IntSortedSets.singleton(id) - set.size == 1 -> { + set is IntSortedSets.Singleton -> { val newSet = IntAVLTreeSet() newSet.add(set.firstInt()) newSet.add(id)