diff --git a/package.json b/package.json index 86297f45e..5db84a1e0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "NineChronicles", "productName": "Nine Chronicles", - "version": "2.7.5", + "version": "2.7.6", "description": "Game Launcher for Nine Chronicles", "author": "Planetarium ", "license": "GPL-3.0", diff --git a/src/main/main.ts b/src/main/main.ts index acfdce3ee..49006f8cd 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -152,9 +152,19 @@ async function initializeConfig() { registry = await data.json(); if (registry === undefined) throw Error("Failed to parse registry."); + if (!Array.isArray(registry) || registry.length <= 0) { + throw Error("Registry is empty or invalid. No planets found."); + } - const planet = registry.find((v) => v.id === remoteConfig.Planet); - if (!planet) throw Error(`Planet failed to initialize: ${planet}`); + const planet = + registry.find((v) => v.id === remoteConfig.Planet) ?? + (() => { + console.log( + "No matching PlanetID found in registry. Using the first planet.", + ); + remoteConfig.Planet = registry[0].id; + return registry[0]; + })(); remoteNode = await initializeNode(planet.rpcEndpoints, true); console.log(registry); diff --git a/src/renderer/resources/launcher-icon/internal/AppIcon.icns b/src/renderer/resources/launcher-icon/internal/AppIcon.icns index f861c99c4..f9635c58b 100644 Binary files a/src/renderer/resources/launcher-icon/internal/AppIcon.icns and b/src/renderer/resources/launcher-icon/internal/AppIcon.icns differ diff --git a/src/renderer/resources/launcher-icon/internal/app.ico b/src/renderer/resources/launcher-icon/internal/app.ico index 3d364085d..2b7c49dd8 100644 Binary files a/src/renderer/resources/launcher-icon/internal/app.ico and b/src/renderer/resources/launcher-icon/internal/app.ico differ diff --git a/src/renderer/resources/launcher-icon/main/AppIcon.icns b/src/renderer/resources/launcher-icon/main/AppIcon.icns index b3a7a1bf6..e9b122256 100644 Binary files a/src/renderer/resources/launcher-icon/main/AppIcon.icns and b/src/renderer/resources/launcher-icon/main/AppIcon.icns differ diff --git a/src/renderer/resources/launcher-icon/main/app.ico b/src/renderer/resources/launcher-icon/main/app.ico index 34edd9400..4cc8c814d 100644 Binary files a/src/renderer/resources/launcher-icon/main/app.ico and b/src/renderer/resources/launcher-icon/main/app.ico differ diff --git a/src/renderer/resources/launcher-icon/preview/AppIcon.icns b/src/renderer/resources/launcher-icon/preview/AppIcon.icns index 1e93c4674..1686a891a 100644 Binary files a/src/renderer/resources/launcher-icon/preview/AppIcon.icns and b/src/renderer/resources/launcher-icon/preview/AppIcon.icns differ diff --git a/src/renderer/resources/launcher-icon/preview/app.ico b/src/renderer/resources/launcher-icon/preview/app.ico index b0e76edda..7a5c70fc9 100644 Binary files a/src/renderer/resources/launcher-icon/preview/app.ico and b/src/renderer/resources/launcher-icon/preview/app.ico differ