Use a shorter name for caches downloaded directly from a JS5 server

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent 5d7bf1d59b
commit d665749481
  1. 3
      archive/src/main/kotlin/org/openrs2/archive/cache/Js5ChannelHandler.kt

@ -182,7 +182,6 @@ public class Js5ChannelHandler(
Js5Compression.uncompress(buf.slice()).use { uncompressed -> Js5Compression.uncompress(buf.slice()).use { uncompressed ->
masterIndex = Js5MasterIndex.read(uncompressed.slice(), masterIndexFormat) masterIndex = Js5MasterIndex.read(uncompressed.slice(), masterIndexFormat)
val name = "Downloaded from $hostname:$port"
val (id, rawIndexes) = runBlocking { val (id, rawIndexes) = runBlocking {
importer.importMasterIndexAndGetIndexes( importer.importMasterIndexAndGetIndexes(
masterIndex!!, masterIndex!!,
@ -192,7 +191,7 @@ public class Js5ChannelHandler(
build, build,
lastMasterIndexId, lastMasterIndexId,
timestamp = Instant.now(), timestamp = Instant.now(),
name name = "Original"
) )
} }
try { try {

Loading…
Cancel
Save