Mark empty master index as invalid

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 38be1905cb
commit b685d901aa
  1. 2
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt

@ -27,7 +27,7 @@ public class CacheExporter @Inject constructor(
val validKeys: Long,
val keys: Long
) {
public val allIndexesValid: Boolean = indexes == validIndexes
public val allIndexesValid: Boolean = indexes == validIndexes && indexes != 0L
public val validIndexesFraction: Double = if (indexes == 0L) {
1.0
} else {

Loading…
Cancel
Save