diff --git a/alternatives/camera-utils.mjs b/alternatives/camera-utils.mjs index 6f353fb..f341b32 100644 --- a/alternatives/camera-utils.mjs +++ b/alternatives/camera-utils.mjs @@ -10,7 +10,8 @@ const mod = new Mod( .add_category("Utility", "Zoom") .add_link( { host: "modrinth"}, - { host: "curseforge", params: { namespace: "camera-utils" } } + { host: "curseforge", params: { namespace: "camera-utils" } }, + { host: "github" } ); await mod.import_versions_from_modrinth("camera-utils"); diff --git a/alternatives/connected_block_textures.mjs b/alternatives/connected_block_textures.mjs index 44f8a9a..a649fab 100644 --- a/alternatives/connected_block_textures.mjs +++ b/alternatives/connected_block_textures.mjs @@ -5,7 +5,7 @@ export default new Mod( "TwilightFlower", "An implementation of the MCPatcher/Optifine connected textures format on the Fabric modloader. Unmaintained.", ) -.icon("https://cdn.discordapp.com/attachments/523633816078647296/708497185003536424/connected.png") +.icon("images/connected-block-textures.png") .add_version({ loader: ["fabric"], v: [16] }) .add_category("Cosmetic") .add_link( diff --git a/alternatives/dynamic-fps.mjs b/alternatives/dynamic-fps.mjs index ce3e83a..23b89d3 100644 --- a/alternatives/dynamic-fps.mjs +++ b/alternatives/dynamic-fps.mjs @@ -12,7 +12,7 @@ const mod = new Mod( .add_link( { host: "modrinth" }, { host: "curseforge" }, - { host: "github" } + { host: "github", params: { author: "juliand665" } } ); await mod.import_versions_from_modrinth("dynamic-fps"); diff --git a/alternatives/entity-model-features.mjs b/alternatives/entity-model-features.mjs index 8dbfff9..b0ca48e 100644 --- a/alternatives/entity-model-features.mjs +++ b/alternatives/entity-model-features.mjs @@ -7,7 +7,7 @@ const mod = new Mod( "Traben", "A Fabric mod implementing support for OptiFine-format custom entity model (CEM) resourcepacks. Fully compatible with Sodium & Fresh Animations.", ) -.icon("https://cdn.modrinth.com/data/4I1XuqiY/5e127e83e3b55e3cebf32e3e8b355296ea62d87d.png") +.icon("https://cdn.modrinth.com/data/4I1XuqiY/7a6acd528931a1a0d1b60fd0925b88227fb345cc.png") .add_version({ loader: ["quilt"], v: [ 19.4] }, { loader: ["fabric", "forge"], v: [ 19.4] }) .add_category("Cosmetic") .add_link( diff --git a/alternatives/lithium.mjs b/alternatives/lithium.mjs index b862e15..404c1b2 100644 --- a/alternatives/lithium.mjs +++ b/alternatives/lithium.mjs @@ -10,6 +10,7 @@ const mod = new Mod( .add_category("Performance", "General") .add_link( { host: "modrinth" }, + { host: "curseforge" }, { host: "github", params: { namespace: "lithium-fabric" } } ); diff --git a/alternatives/no-telemetry.mjs b/alternatives/no-telemetry.mjs index 360bf46..ef84a5d 100644 --- a/alternatives/no-telemetry.mjs +++ b/alternatives/no-telemetry.mjs @@ -9,7 +9,8 @@ const mod = new Mod( .add_category("Utility") .add_link( { host: "modrinth"}, - { host: "curseforge"} + { host: "curseforge"}, + { host: "github", params: { author: "kb-1000" } } ); await mod.import_versions_from_modrinth("no-telemetry"); diff --git a/alternatives/okzoomer.mjs b/alternatives/okzoomer.mjs index 874900d..98422b5 100644 --- a/alternatives/okzoomer.mjs +++ b/alternatives/okzoomer.mjs @@ -7,7 +7,7 @@ const mod = new Mod( "EnnuiL", "Adds a highly-configurable zoom key for Quilt. The zoom is yours!", ) -.icon("https://cdn.modrinth.com/data/aXf2OSFU/icon.png") +.icon("https://cdn.modrinth.com/data/aXf2OSFU/e4eadd819f064a6c652313229b218fc207d6b805.png") .add_version({ loader: ["quilt"], v: [18.2, 19, 20.1] }, { loader: ["fabric"], v: [15, 17, 18] }) .add_category("Utility", "Zoom") .add_link( diff --git a/alternatives/quilt-loading-screen.mjs b/alternatives/quilt-loading-screen.mjs index a692b77..fdf8ed2 100644 --- a/alternatives/quilt-loading-screen.mjs +++ b/alternatives/quilt-loading-screen.mjs @@ -10,6 +10,7 @@ const mod = new Mod( .add_category("Cosmetic", "Splash Screen") .add_link( { host: "modrinth" }, + { host: "curseforge" }, { host: "github", params: { author: "emmods" } } ); diff --git a/alternatives/resolution-control-plus.mjs b/alternatives/resolution-control-plus.mjs index 5748baf..e10abec 100644 --- a/alternatives/resolution-control-plus.mjs +++ b/alternatives/resolution-control-plus.mjs @@ -9,6 +9,7 @@ const mod = new Mod( .add_category("Utility") .add_link( { host: "modrinth" }, + { host: "curseforge", params: { namespace: "resolutioncontrol" }}, { host: "github", params: { namespace: "resolution-control" } } ); diff --git a/alternatives/sodium.mjs b/alternatives/sodium.mjs index f7e8c28..9176b83 100644 --- a/alternatives/sodium.mjs +++ b/alternatives/sodium.mjs @@ -9,6 +9,7 @@ const mod = new Mod( .add_category("Performance", "Client") .add_link( { host: "modrinth" }, + { host: "curseforge" }, { host: "github", params: { namespace: "sodium-fabric" } } ); diff --git a/build.mjs b/build.mjs index 0c57368..a5f368b 100644 --- a/build.mjs +++ b/build.mjs @@ -5,6 +5,7 @@ import { load_mods } from "./build_src/mod.mjs"; const WEBSITE = "https://optifine.alternatives.lambdaurora.dev"; const WEBSITE_PREFIX = WEBSITE + "/"; const BUILD_DIR = "./build"; +const IMAGES_DIR = BUILD_DIR + "/images"; const DECODER = new TextDecoder("utf-8"); const ENCODER = new TextEncoder(); @@ -13,7 +14,7 @@ const ENCODER = new TextEncoder(); console.log("Creating build directory."); if (existsSync(BUILD_DIR)) await Deno.remove(BUILD_DIR, {recursive: true}); -await Deno.mkdir(BUILD_DIR); +await Deno.mkdir(IMAGES_DIR, { recursive: true }); console.log("Building..."); const categorized_mods = await fetch_mods(); @@ -113,7 +114,8 @@ async function build_readme_file(mods) { async function build_pages(mods) { Promise.all([ Deno.copyFile("giscus_style.css", BUILD_DIR + "/giscus_style.css"), - Deno.copyFile("forge.png", BUILD_DIR + "/forge.png") + Deno.copyFile("images/forge.png", IMAGES_DIR + "/forge.png"), + Deno.copyFile("images/connected-block-textures.png", IMAGES_DIR + "/connected-block-textures.png") ]); async function build_mod_cards(parent, mods, level = 3) { diff --git a/images/connected-block-textures.png b/images/connected-block-textures.png new file mode 100644 index 0000000..1c8e72d Binary files /dev/null and b/images/connected-block-textures.png differ diff --git a/forge.png b/images/forge.png similarity index 100% rename from forge.png rename to images/forge.png diff --git a/loaders/forge.mjs b/loaders/forge.mjs index a87c4db..7324c1f 100644 --- a/loaders/forge.mjs +++ b/loaders/forge.mjs @@ -4,7 +4,7 @@ export default new Loader( "Forge", "https://files.minecraftforge.net/", (html, width, height) => html.create_element("img") - .with_attr("src", "forge.png") + .with_attr("src", "images/forge.png") .with_attr("width", `${width}`) .with_attr("height", `${height}`) );