diff --git a/assets/analyzer.js b/assets/analyzer.js
index c755e22..f61f31d 100644
--- a/assets/analyzer.js
+++ b/assets/analyzer.js
@@ -352,8 +352,16 @@ async function mainScan(hasData = false) {
}
}
- const description = pack.pack && pack.pack.description ?
- (typeof pack.pack.description == "object" ? (pack.pack.description.text || pack.pack.description.translation) : pack.pack.description) : "No description"
+ let description = "No description"
+ if (pack.pack && pack.pack.description) {
+ if (typeof pack.pack.description == "object") {
+ const desc = Array.isArray(pack.pack.description) ? pack.pack.description : [pack.pack.description]
+ desc.forEach(d => {
+ if (d.text || d.translation) description += d.text || d.translation
+ })
+ } else description = pack.pack.description
+ }
+
return "" + description.replace(/ยง[0-9a-flmnor]/gi, "") +
(window.versions.some(ver => (rpMode ? ver.resourcepack_version : ver.datapack_version) == pack.pack.pack_format) ?
"
Supported versions: " +