Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21.2-pre1 update #785

Merged
merged 6 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx1G
maven_group=com.terraformersmc
archive_name=modmenu

minecraft_version=24w36a
yarn_mappings=24w36a+build.6
loader_version=0.16.5
fabric_version=0.104.0+1.21.2
minecraft_version=1.21.2-pre3
yarn_mappings=1.21.2-pre3+build.2
loader_version=0.16.7
fabric_version=0.105.4+1.21.2
text_placeholder_api_version=2.4.0-pre.2+1.21
quilt_loader_version=0.17.7
quilt_loader_version=0.26.4

# Project Metadata
project_name=Mod Menu
Expand All @@ -21,7 +21,7 @@ default_release_type=stable
# Modrinth Metadata
modrinth_slug=modmenu
modrinth_id=mOgUt4GM
modrinth_game_versions=24w36a
modrinth_game_versions=1.21.2-pre1, 1.21.2-pre1, 1.21.2-pre1
modrinth_mod_loaders=fabric, quilt
modrinth_required_dependencies=fabric-api, placeholder-api

Expand Down
33 changes: 29 additions & 4 deletions src/main/java/com/terraformersmc/modmenu/ModMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,46 @@ public void onInitializeClient() {
Map<String, Mod> dummyParents = new HashMap<>();

// Initialize parent map
HashSet<String> modParentSet = new HashSet<>();
for (Mod mod : MODS.values()) {
String parentId = mod.getParent();
if (parentId != null) {
Mod parent = MODS.getOrDefault(parentId, dummyParents.get(parentId));
if (parentId == null) {
ROOT_MODS.put(mod.getId(), mod);
continue;
}

Mod parent;
modParentSet.clear();
while (true) {
parent = MODS.getOrDefault(parentId, dummyParents.get(parentId));
if (parent == null) {
if (mod instanceof FabricMod) {
parent = new FabricDummyParentMod((FabricMod) mod, parentId);
dummyParents.put(parentId, parent);
}
}
PARENT_MAP.put(parent, mod);
} else {

parentId = parent != null ? parent.getParent() : null;
if (parentId == null) {
// It will most likely end here in the first iteration
break;
}

if (modParentSet.contains(parentId)) {
LOGGER.warn("Mods contain each other as parents: {}", modParentSet);
parent = null;
break;
}
modParentSet.add(parentId);
}

if (parent == null) {
ROOT_MODS.put(mod.getId(), mod);
continue;
}
PARENT_MAP.put(parent, mod);
}

MODS.putAll(dummyParents);
ModMenuEventHandler.register();
}
Expand Down
Binary file modified src/main/resources/assets/modmenu/fabric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/java_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/assets/modmenu/lang/be_by.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"option.modmenu.update_checker.false": "Адключана",
"option.modmenu.button_update_badge": "Індыкатар абнаўленняў",
"option.modmenu.button_update_badge.true": "Паказаны",
"option.modmenu.button_update_badge.false": "Схаваны"
"option.modmenu.button_update_badge.false": "Схаваны",
"option.modmenu.quick_configure": "Хуткія налады",
"option.modmenu.quick_configure.true": "Уключана",
"option.modmenu.quick_configure.false": "Адключана",
Expand Down
82 changes: 58 additions & 24 deletions src/main/resources/assets/modmenu/lang/ko_kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"modmenu.title": "모드",
"modmenu.nameTranslation.modmenu": "Mod Menu",
"modmenu.descriptionTranslation.modmenu": "설치된 모드 목록을 볼 수 있는 모드 메뉴를 추가합니다.",

"modmenu.loaded": "(%s개 로드됨)",
"modmenu.loaded.short": "(%s)",
"modmenu.loaded.69.secret": "(%s개 로드됨...nice)",
Expand All @@ -12,13 +13,16 @@
"modmenu.mods.1": " (모드 %s개)",
"modmenu.mods.69.secret": " (모드 %s개...nice)",
"modmenu.mods.420.secret": " (%s개 모드...활활 타오른다)",

"modmenu.search": "모드 검색",
"modmenu.searchTerms.library": "API 라이브러리",
"modmenu.searchTerms.patchwork": "Patchwork Forge FML",
"modmenu.searchTerms.modpack": "모드팩 팩",
"modmenu.searchTerms.deprecated": "곧 사라짐 오래됨 오래됨",
"modmenu.searchTerms.clientside": "클라이언트용 게임용",
"modmenu.searchTerms.configurable": "구성 구성 구성 구성 옵션",
"modmenu.searchTerms.hasUpdate": "업데이트",

"modmenu.toggleFilterOptions": "필터 옵션 전환",
"modmenu.showingMods.n": "모드 %s개 표시",
"modmenu.showingMods.1": "모드 %s개 표시",
Expand All @@ -28,32 +32,40 @@
"modmenu.showingModsLibraries.n.1": "모드 %s개와 라이브러리 %s개 표시",
"modmenu.showingModsLibraries.1.n": "모드 %s개와 라이브러리 %s개 표시",
"modmenu.showingModsLibraries.1.1": "모드 %s개와 라이브러리 %s개 표시",

"modmenu.badge.library": "라이브러리",
"modmenu.badge.clientsideOnly": "클라이언트",
"modmenu.badge.deprecated": "구식",
"modmenu.badge.deprecated": "지원 종료",
"modmenu.badge.forge": "Forge",
"modmenu.badge.modpack": "모드팩",
"modmenu.badge.minecraft": "Minecraft",

"modmenu.dropInfo.line1": "모드를 추가하려면",
"modmenu.dropInfo.line2": "이 창에 파일을 끌어다 놓으세요",
"modmenu.dropConfirm": "다음 모드를 mods 폴더에 복사하시겠습니까?",
"modmenu.dropSuccessful.line1": "모드 복사 완료",
"modmenu.dropSuccessful.line2": "모드를 적용하려면 게임을 다시 시작하세요",

"modmenu.modIdToolTip": "모드 ID: %s",
"modmenu.authorPrefix": "%s 제작",
"modmenu.config": "설정 편집",
"modmenu.configure": "설정...",
"modmenu.configure.error": "Failed to load config screen for '%s'\nReport to '%s', not Mod Menu",
"modmenu.configure.error": "'%s' 모드의 설정창을 불러오는데 실패했습니다.\n Mod Menu가 아닌 '%s'에게 문제를 제보해주세요",
"modmenu.website": "웹사이트",
"modmenu.issues": "문제",

"modmenu.credits": "크레딧:",
"modmenu.viewCredits": "크레딧 보기",
"modmenu.license": "라이센스:",
"modmenu.links": "링크:",
"modmenu.source": "소스",
"modmenu.hasUpdate": "An update is available:",
"modmenu.childHasUpdate": "A child of this mod has an update available.",
"modmenu.hasUpdate": "업데이트가 있습니다:",
"modmenu.experimental": "(Mod Menu의 업데이트 확인기능은 실험적 기능입니다!)",
"modmenu.childHasUpdate": "이 모드의 하위 항목에 사용 가능한 업데이트가 있습니다.",
"modmenu.updateText": "v%s on %s",
"modmenu.install_version": "Install version %s",
"modmenu.downloadLink": "다운로드",

"modmenu.buymeacoffee": "커피 사주기",
"modmenu.coindrop": "Coindrop",
"modmenu.crowdin": "Crowdin",
Expand All @@ -72,63 +84,78 @@
"modmenu.paypal": "PayPal",
"modmenu.reddit": "Reddit",
"modmenu.twitch": "Twitch",
"modmenu.twitter": "Twitter",
"modmenu.twitter": "X (Twitter)",
"modmenu.wiki": "위키",
"modmenu.youtube": "YouTube",

"modmenu.credits.role.author": "개발자",
"modmenu.credits.role.contributor": "컨트리뷰터",
"modmenu.credits.role.translator": "번역자",
"modmenu.credits.role.maintainer": "유지관리자",
"modmenu.credits.role.playtester": "테스터",
"modmenu.credits.role.illustrator": "일러스트레이터",
"modmenu.credits.role.owner": "소유자",

"modmenu.modsFolder": "모드 폴더 열기",
"modmenu.configsFolder": "설정 폴더 열기",

"modmenu.nameTranslation.minecraft": "Minecraft",
"modmenu.descriptionTranslation.minecraft": "베이스 게임",
"modmenu.nameTranslation.java": "자바",
"modmenu.descriptionTranslation.java": "자바 런타임 환경",
"modmenu.javaDistributionName": "실행: %s",

"modmenu.options": "모드 메뉴 옵션",
"option.modmenu.sorting": "정렬: %s",
"option.modmenu.sorting": "정렬",
"option.modmenu.sorting.ascending": "A-Z",
"option.modmenu.sorting.descending": "Z-A",
"option.modmenu.show_libraries": "라이브러리: %s",
"option.modmenu.show_libraries": "라이브러리",
"option.modmenu.show_libraries.true": "표시",
"option.modmenu.show_libraries.false": "숨김",
"option.modmenu.hide_config_buttons": "설정 버튼: %s",
"option.modmenu.hide_config_buttons": "설정 버튼",
"option.modmenu.hide_config_buttons.true": "숨김",
"option.modmenu.hide_config_buttons.false": "표시",
"option.modmenu.hide_badges": "모드 배지: %s",
"option.modmenu.hide_badges": "모드 배지",
"option.modmenu.hide_badges.true": "숨김",
"option.modmenu.hide_badges.false": "표시",
"option.modmenu.compact_list": "목록: %s",
"option.modmenu.compact_list": "목록",
"option.modmenu.compact_list.true": "소형",
"option.modmenu.compact_list.false": "표준",
"option.modmenu.hide_mod_links": "모드 링크: %s",
"option.modmenu.hide_mod_links": "모드 링크",
"option.modmenu.hide_mod_links.true": "숨김",
"option.modmenu.hide_mod_links.false": "표시",
"option.modmenu.hide_mod_credits": "모드 크레딧: %s",
"option.modmenu.hide_mod_credits": "모드 크레딧",
"option.modmenu.hide_mod_credits.true": "숨김",
"option.modmenu.hide_mod_credits.false": "표시",
"option.modmenu.hide_mod_license": "모드 라이센스: %s",
"option.modmenu.hide_mod_license": "모드 라이센스",
"option.modmenu.hide_mod_license.true": "숨김",
"option.modmenu.hide_mod_license.false": "표시",
"option.modmenu.count_children": "하위 모드: %s",
"option.modmenu.count_children": "하위 모드",
"option.modmenu.count_children.true": "셈",
"option.modmenu.count_children.false": "세지 않음",
"option.modmenu.count_libraries": "라이브러리: %s",
"option.modmenu.count_libraries": "라이브러리",
"option.modmenu.count_libraries.true": "셈",
"option.modmenu.count_libraries.false": "세지 않음",
"option.modmenu.count_hidden_mods": "숨긴 모드: %s",
"option.modmenu.count_hidden_mods": "숨긴 모드",
"option.modmenu.count_hidden_mods.true": "셈",
"option.modmenu.count_hidden_mods.false": "세지 않음",
"option.modmenu.mod_count_location": "모드 수: %s",
"option.modmenu.mod_count_location": "모드 수",
"option.modmenu.mod_count_location.title_screen": "타이틀 화면 구석",
"option.modmenu.mod_count_location.mods_button": "모드 버튼: %s",
"option.modmenu.mod_count_location.mods_button": "모드 버튼",
"option.modmenu.mod_count_location.title_screen_and_mods_button": "둘 다",
"option.modmenu.mod_count_location.none": "둘 다 안함",
"option.modmenu.easter_eggs": "이스터 에그: %s",
"option.modmenu.easter_eggs": "이스터 에그",
"option.modmenu.easter_eggs.true": "활성화",
"option.modmenu.easter_eggs.false": "비활성화",
"option.modmenu.mods_button_style": "모드 버튼: %s",
"option.modmenu.mods_button_style": "모드 버튼 위치",
"option.modmenu.mods_button_style.classic": "Realms 아래",
"option.modmenu.mods_button_style.replace_realms": "Realms 대체",
"option.modmenu.mods_button_style.shrink": "Realms 옆",
"option.modmenu.mods_button_style.icon": "아이콘",
"option.modmenu.game_menu_button_style": "게임 메뉴",
"option.modmenu.game_menu_button_style.below_bugs": "Bugs 아래",
"option.modmenu.game_menu_button_style.replace_bugs": "Bugs 대체",
"option.modmenu.game_menu_button_style.icon": "아이콘",
"option.modmenu.random_java_colors": "자바 색깔",
"option.modmenu.random_java_colors.true": "공급업체",
"option.modmenu.random_java_colors.false": "항상 빨갛게",
Expand All @@ -138,10 +165,17 @@
"option.modmenu.translate_descriptions": "설명",
"option.modmenu.translate_descriptions.true": "변역됨",
"option.modmenu.translate_descriptions.false": "번역 안됨",
"option.modmenu.update_checker": "Update Checker",
"option.modmenu.update_checker": "업데이트 확인 기능",
"option.modmenu.update_checker.true": "활성화",
"option.modmenu.update_checker.false": "비활성화",
"option.modmenu.button_update_badge": "Update Indicator",
"option.modmenu.button_update_badge": "업데이트 알림",
"option.modmenu.button_update_badge.true": "표시",
"option.modmenu.button_update_badge.false": "숨김"
}
"option.modmenu.button_update_badge.false": "숨김",
"option.modmenu.quick_configure": "빠른 설정창",
"option.modmenu.quick_configure.true": "활성화",
"option.modmenu.quick_configure.false": "비활성화",
"option.modmenu.update_channel": "업데이트 버전",
"option.modmenu.update_channel.alpha": "전체",
"option.modmenu.update_channel.beta": "정식 & 베타 버전",
"option.modmenu.update_channel.release": "정식 버전"
}
Binary file modified src/main/resources/assets/modmenu/minecraft_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/textures/gui/filters_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/textures/gui/mods_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/textures/gui/mods_button_alt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/textures/gui/parent_mod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/unknown_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/modmenu/unknown_parent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading