From b685d901aae8ba6d4ad6aeffa6e8677ec2412ab5 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 21 Mar 2021 14:16:29 +0000 Subject: [PATCH] Mark empty master index as invalid Signed-off-by: Graham --- .../src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt index b72a4ef99e..0c0b57aaa3 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt +++ b/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 {