diff --git a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt index f9d268b0..7c78ea1c 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/NamedEntryCollection.kt @@ -128,7 +128,7 @@ public abstract class NamedEntryCollection( val nameHashTable = nameHashTable ?: return null val ids = nameHashTable.getOrDefault(nameHash, IntSortedSets.EMPTY_SET) return if (ids.isNotEmpty()) { - get(ids.firstInt()) ?: throw AssertionError() + get(ids.firstInt())!! } else { null }