Use our own vermap by default

This commit is contained in:
2025-05-29 18:50:13 +02:00
parent a47002803d
commit c6fa3ce6f2
+2 -2
View File
@@ -58,7 +58,7 @@ defmodule Amethyst.DataGen do
- `deny_vers` (Version range): Refuse to load these versions.
- `allow_vers` (Version range): If set, refuse to load versions outside of this range.
- `cache_dir` (String): Where to store cached data. Defaults to the system default.
- `vermap_url` (String): URL to fetch community-managed PVN-to-version mapping (Defaults to `https://gitlab.bixilon.de/bixilon/minosoft/-/raw/master/src/main/resources/assets/minosoft/mapping/versions.json`)
- `vermap_url` (String): URL to fetch community-managed PVN-to-version mapping (Defaults to `https://git.colon-three.com/amethyst/amethyst/raw/branch/main/vermap.json`)
- `meta_url` (String): URL to fetch official Minecraft version metadata (Defaults to `https://piston-meta.mojang.com/mc/game/version_manifest_v2.json`)
- `java_bin` (String): Path to java executable (Defaults to: `java`)
"""
@@ -75,7 +75,7 @@ defmodule Amethyst.DataGen do
@spec init(datagen_args()) :: {:ok, State.t()}
def init(args) do
args = Keyword.put_new_lazy(args, :cache_dir, fn -> System.tmp_dir() <> "/mcdata/" end)
|> Keyword.put_new(:vermap_url, "https://gitlab.bixilon.de/bixilon/minosoft/-/raw/master/src/main/resources/assets/minosoft/mapping/versions.json")
|> Keyword.put_new(:vermap_url, "https://git.colon-three.com/amethyst/amethyst/raw/branch/main/vermap.json")
|> Keyword.put_new(:meta_url, "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json")
|> Keyword.put_new(:java_bin, "java")
{:ok, pid} = Registry.start_link(keys: :unique, name: Amethyst.DataGen.Registry)