From 9fcf8a74d334e769d055d0a5e083add75cc61d04 Mon Sep 17 00:00:00 2001 From: Mirik9724 <145905797+Mirik9724@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:47:34 +1000 Subject: [PATCH 1/4] Add files via upload --- Compilator for RP.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Compilator for RP.py b/Compilator for RP.py index 8b60ef9..8c3302f 100644 --- a/Compilator for RP.py +++ b/Compilator for RP.py @@ -58,6 +58,8 @@ def get_supported_formats(versions): minecraft_version = os.getenv("MINECRAFT_VERSION") description = os.getenv("DESCRIPTION") supported_versions = parse_list(os.getenv("SUPPORTED_VERSIONS")) +min_versions = parse_list(os.getenv("min_version")) +max_versions = parse_list(os.getenv("max_version")) include_language = os.getenv("INCLUDE_LANGUAGE") == 'True' include_credits = os.getenv("INCLUDE_CREDITS") == 'True' include_animation = os.getenv("INCLUDE_ANIMATION") == 'True' @@ -101,7 +103,7 @@ def get_supported_formats(versions): "pack": { "pack_format": pack_format, "description": description, - "supported_formats": get_supported_formats(supported_versions) + "supported_formats": { "min_inclusive": get_pack_format(min_versions), "max_inclusive": get_pack_format(max_versions)}, #get_supported_formats(supported_versions) # } } From 669deb6075f6ff04b8d9f6978cf4002962aca48c Mon Sep 17 00:00:00 2001 From: Mirik9724 <145905797+Mirik9724@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:48:20 +1000 Subject: [PATCH 2/4] Add files via upload From f0f37c49b65e3340b632dff2bf0ae0fa2e696c01 Mon Sep 17 00:00:00 2001 From: Mirik9724 <145905797+Mirik9724@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:48:52 +1000 Subject: [PATCH 3/4] Update .env --- .env | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.env b/.env index 09d6a5a..754cac5 100644 --- a/.env +++ b/.env @@ -10,7 +10,11 @@ MINECRAFT_VERSION=1.16 DESCRIPTION=My Custom Resource Pack # supported versions +supversions=False SUPPORTED_VERSIONS=1.17,1.18,1.19-1.19.4,1.20, 1.21 +supversions_min_max=True +min_version=1.16 +max_version=1.21.1 # Включение языков INCLUDE_LANGUAGE=False From 22265c3dd571737c3cf1b94d682471f8ffd6fef2 Mon Sep 17 00:00:00 2001 From: Mirik9724 <145905797+Mirik9724@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:41:39 +1000 Subject: [PATCH 4/4] Update .env --- .env | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.env b/.env index 754cac5..4ffaf34 100644 --- a/.env +++ b/.env @@ -10,9 +10,8 @@ MINECRAFT_VERSION=1.16 DESCRIPTION=My Custom Resource Pack # supported versions -supversions=False +VERSION_TYPE=specific #or range SUPPORTED_VERSIONS=1.17,1.18,1.19-1.19.4,1.20, 1.21 -supversions_min_max=True min_version=1.16 max_version=1.21.1