时间:2024 06 14
主要内容:
1. 更新适配的游戏版本到1.21/1.21.x
2. 翻译键移除thewhitedog9487的命名空间
This commit is contained in:
2024-06-14 13:20:27 +08:00
parent 789ad58006
commit 006481d186
8 changed files with 30 additions and 35 deletions

View File

@@ -13,13 +13,13 @@ public class ModMenu implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> YetAnotherConfigLib.createBuilder()
.title(Text.translatable("title.thewhitedog9487.twd-sasf.config"))
.title(Text.translatable("title.twd-sasf.config"))
.category(ConfigCategory.createBuilder()
.name(Text.translatable("config.thewhitedog9487.twd-sasf.category.general"))
.name(Text.translatable("config.twd-sasf.category.general"))
.option(Option.<Boolean>createBuilder()
.name(Text.translatable("option.thewhitedog9487.twd-sasf.ModEnabled"))
.name(Text.translatable("option.twd-sasf.ModEnabled"))
.binding(true, () -> Settings.ModEnabled, newVal -> Settings.ModEnabled = newVal)
.description(OptionDescription.of(Text.translatable("option.thewhitedog9487.twd-sasf.ModEnabled.description")))
.description(OptionDescription.of(Text.translatable("option.twd-sasf.ModEnabled.description")))
.controller(TickBoxControllerBuilder::create)
.build())
.build())

View File

@@ -9,6 +9,6 @@ public class ServerAddressSpaceFixClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
LOGGER.info("ServerAddressSpaceFix正在初始化!");
LOGGER.info("ServerAddressSpaceFix Loading!");
}
}

View File

@@ -3,8 +3,8 @@
"modmenu.descriptionTranslation.twd-sasf": "Fixed the \"unknown host\" bug caused by the server address containing spaces at the beginning and end of the server address when adding a server or connecting directly\nTip: If you need to use the configuration menu, install the YetAnotherConfigLib mod",
"twd-sasf.bilibili": "Bilibili",
"twd-sasf.blog": "Blog",
"title.thewhitedog9487.twd-sasf.config": "ServerAddressSpaceFix",
"config.thewhitedog9487.twd-sasf.category.general": "General",
"option.thewhitedog9487.twd-sasf.ModEnabled": "Whether To Enable The Mod Feature",
"option.thewhitedog9487.twd-sasf.ModEnabled.description": "There is no need to restart the game, and the modification will take effect immediately after it is saved"
"title.twd-sasf.config": "ServerAddressSpaceFix",
"config.twd-sasf.category.general": "General",
"option.twd-sasf.ModEnabled": "Whether To Enable The Mod Feature",
"option.twd-sasf.ModEnabled.description": "There is no need to restart the game, and the modification will take effect immediately after it is saved"
}

View File

@@ -3,8 +3,8 @@
"modmenu.descriptionTranslation.twd-sasf": "修复添加服务器或直接连接时服务器地址首尾包含空格导致的“未知的主机”Bug\n提示如果需要使用配置菜单请安装YetAnotherConfigLib模组",
"twd-sasf.bilibili": "哔哩哔哩主页",
"twd-sasf.blog": "TheWhiteDog9487的博客",
"title.thewhitedog9487.twd-sasf.config": "服务器地址首尾空格修复",
"config.thewhitedog9487.twd-sasf.category.general": "通用",
"option.thewhitedog9487.twd-sasf.ModEnabled": "是否启用模组功能",
"option.thewhitedog9487.twd-sasf.ModEnabled.description": "无需重启游戏,修改并保存后立刻生效"
"title.twd-sasf.config": "服务器地址首尾空格修复",
"config.twd-sasf.category.general": "通用",
"option.twd-sasf.ModEnabled": "是否启用模组功能",
"option.twd-sasf.ModEnabled.description": "无需重启游戏,修改并保存后立刻生效"
}

View File

@@ -27,9 +27,9 @@
}
],
"depends": {
"fabricloader": ">=0.15.3",
"minecraft": ["1.20","1.20.*"],
"java": ">=17"
"fabricloader": ">=0.15.11",
"minecraft": ["1.21","1.21.*"],
"java": ">=21"
},
"suggests": {
"another-mod": "*"