diff --git a/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt b/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt index 58f5cf44..0d6ad5a4 100644 --- a/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt +++ b/cache/src/main/kotlin/org/openrs2/cache/Js5MasterIndex.kt @@ -36,7 +36,7 @@ public inline class Js5MasterIndex(public val entries: MutableList = muta public companion object { public fun read(buf: ByteBuf): Js5MasterIndex { - check(buf.readableBytes() % 8 == 0) + require(buf.readableBytes() % 8 == 0) val index = Js5MasterIndex() while (buf.isReadable) {