Mark empty master index as invalid

Signed-off-by: Graham <gpe@openrs2.org>
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 validKeys: Long,
val keys: 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) { public val validIndexesFraction: Double = if (indexes == 0L) {
1.0 1.0
} else { } else {

Loading…
Cancel
Save