mirror of
https://github.com/TheWhiteDog9487/ServerAddressSpaceFix.git
synced 2026-06-21 14:14:44 +08:00
更改ModID
同步Fabric Mod Template那边的Kotlin DSL官方配置 移除main入口类的`@Deprecated`标记 ( 我当初为什么要弃用它? 补全ChangeLog.md ( 已经彻底忘记它的存在了 更新Github Action配置 更新Gradle版本 由于本次更改不存在对玩家具有实质影响的内容,故合并到下一个Mod版本内一并发布
This commit is contained in:
@@ -5,12 +5,12 @@ import net.fabricmc.api.ModInitializer;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@Deprecated
|
||||
public class ServerAddressSpaceFix implements ModInitializer {
|
||||
// This logger is used to write text to the console and the log file.
|
||||
// It is considered best practice to use your mod id as the logger's name.
|
||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("twd-sasf");
|
||||
public static final String ModID = "serveraddressspacefix";
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(ModID);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
||||
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 453 B |
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"modmenu.nameTranslation.serveraddressspacefix": "ServerAddressSpaceFix",
|
||||
"modmenu.descriptionTranslation.serveraddressspacefix": "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",
|
||||
"serveraddressspacefix.bilibili": "Bilibili",
|
||||
"serveraddressspacefix.blog": "Blog",
|
||||
"title.serveraddressspacefix.config": "ServerAddressSpaceFix",
|
||||
"config.serveraddressspacefix.category.general": "General",
|
||||
"option.serveraddressspacefix.ModEnabled": "Whether To Enable The Mod Feature",
|
||||
"option.serveraddressspacefix.ModEnabled.description": "There is no need to restart the game, and the modification will take effect immediately after it is saved"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"modmenu.nameTranslation.serveraddressspacefix": "服务器地址首尾空格修复",
|
||||
"modmenu.descriptionTranslation.serveraddressspacefix": "修复添加服务器或直接连接时,服务器地址首尾包含空格导致的“未知的主机”Bug\n提示:如果需要使用配置菜单,请安装YetAnotherConfigLib模组",
|
||||
"serveraddressspacefix.bilibili": "哔哩哔哩主页",
|
||||
"serveraddressspacefix.blog": "TheWhiteDog9487的博客",
|
||||
"title.serveraddressspacefix.config": "服务器地址首尾空格修复",
|
||||
"config.serveraddressspacefix.category.general": "通用",
|
||||
"option.serveraddressspacefix.ModEnabled": "是否启用模组功能",
|
||||
"option.serveraddressspacefix.ModEnabled.description": "无需重启游戏,修改并保存后立刻生效"
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"modmenu.nameTranslation.twd-sasf": "ServerAddressSpaceFix",
|
||||
"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.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"
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"modmenu.nameTranslation.twd-sasf": "服务器地址首尾空格修复",
|
||||
"modmenu.descriptionTranslation.twd-sasf": "修复添加服务器或直接连接时,服务器地址首尾包含空格导致的“未知的主机”Bug\n提示:如果需要使用配置菜单,请安装YetAnotherConfigLib模组",
|
||||
"twd-sasf.bilibili": "哔哩哔哩主页",
|
||||
"twd-sasf.blog": "TheWhiteDog9487的博客",
|
||||
"title.twd-sasf.config": "服务器地址首尾空格修复",
|
||||
"config.twd-sasf.category.general": "通用",
|
||||
"option.twd-sasf.ModEnabled": "是否启用模组功能",
|
||||
"option.twd-sasf.ModEnabled.description": "无需重启游戏,修改并保存后立刻生效"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "twd-sasf",
|
||||
"id": "serveraddressspacefix",
|
||||
"version": "${version}",
|
||||
"name": "ServerAddressSpaceFix",
|
||||
"description": "服务器地址首尾空格修复",
|
||||
@@ -13,16 +13,16 @@
|
||||
"issues": "https://github.com/TheWhiteDog9487/ServerAddressSpaceFix/issues"
|
||||
},
|
||||
"license": "WTFPL",
|
||||
"icon": "assets/twd-sasf/icon.png",
|
||||
"icon": "assets/serveraddressspacefix/icon.png",
|
||||
"environment": "client",
|
||||
"entrypoints": {
|
||||
"client": [ "xyz.thewhitedog9487.ServerAddressSpaceFixClient" ],
|
||||
"modmenu": [ "xyz.thewhitedog9487.ModMenu" ]
|
||||
},
|
||||
"mixins": [
|
||||
"twd-sasf.mixins.json",
|
||||
"serveraddressspacefix.mixins.json",
|
||||
{
|
||||
"config": "twd-sasf.client.mixins.json",
|
||||
"config": "serveraddressspacefix.client.mixins.json",
|
||||
"environment": "client"
|
||||
}
|
||||
],
|
||||
@@ -38,11 +38,11 @@
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
"twd-sasf.bilibili": "https://space.bilibili.com/401746666",
|
||||
"twd-sasf.blog": "www.thewhitedog9487.xyz"},
|
||||
"serveraddressspacefix.bilibili": "https://space.bilibili.com/401746666",
|
||||
"serveraddressspacefix.blog": "www.thewhitedog9487.xyz"},
|
||||
"update_checker": true}},
|
||||
"contributors": [
|
||||
"JustAlittleWolf"
|
||||
],
|
||||
"accessWidener": "twd-sasf.classtweaker"
|
||||
"accessWidener": "serveraddressspacefix.classtweaker"
|
||||
}
|
||||
Reference in New Issue
Block a user