diff options
| author | TheKodeToad <TheKodeToad@proton.me> | 2023-10-15 21:23:14 +0100 |
|---|---|---|
| committer | TheKodeToad <TheKodeToad@proton.me> | 2023-10-15 21:24:17 +0100 |
| commit | 5c19d7a034d56c7e6011e3232c079c8613392141 (patch) | |
| tree | db824b346e23fdbf1b8794cc2996bcd19c51c78b /meta | |
| parent | 59bf56f89356f53e484832272ef9919ae8ec16f5 (diff) | |
| download | Project-Tick-5c19d7a034d56c7e6011e3232c079c8613392141.tar.gz Project-Tick-5c19d7a034d56c7e6011e3232c079c8613392141.zip | |
Add legacyServices to all applicable versions (take 2)
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/common/mojang.py | 1 | ||||
| -rw-r--r-- | meta/model/mojang.py | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/meta/common/mojang.py b/meta/common/mojang.py index dc80f44412..f484e8d6a4 100644 --- a/meta/common/mojang.py +++ b/meta/common/mojang.py @@ -9,6 +9,7 @@ ASSETS_DIR = join(BASE_DIR, "assets") STATIC_EXPERIMENTS_FILE = join(BASE_DIR, "minecraft-experiments.json") STATIC_OLD_SNAPSHOTS_FILE = join(BASE_DIR, "minecraft-old-snapshots.json") STATIC_OVERRIDES_FILE = join(BASE_DIR, "minecraft-legacy-override.json") +STATIC_LEGACY_SERVICES_FILE = join(BASE_DIR, "minecraft-legacy-services.json") LIBRARY_PATCHES_FILE = join(BASE_DIR, "library-patches.json") MINECRAFT_COMPONENT = "net.minecraft" diff --git a/meta/model/mojang.py b/meta/model/mojang.py index 2e35634008..04e9b608ed 100644 --- a/meta/model/mojang.py +++ b/meta/model/mojang.py @@ -165,6 +165,16 @@ class LibraryPatches(MetaBase): return self.__root__[item] +class LegacyServices(MetaBase): + __root__: List[str] + + def __iter__(self) -> Iterator[str]: + return iter(self.__root__) + + def __getitem__(self, item) -> str: + return self.__root__[item] + + class MojangArguments(MetaBase): game: Optional[List[Any]] # mixture of strings and objects jvm: Optional[List[Any]] |
