mirror of
https://github.com/TheWhiteDog9487/ServerAddressSpaceFix.git
synced 2026-06-15 19:24:44 +08:00
使用YACL Config API自动将功能开关状态保存到文件内
使用文件系统监听器使配置文件被外部更改时可以自动重载到游戏内 解决直接连接窗口内输入框里的服务器IP没有被移除空格处理的问题 在移除空格之后打印日志 添加英文README 重新给main入口类添加`@Deprecated`标记,这东西确实用不到,后面看要不要直接删了 为AI Agent添加AGENTS.md文件以指示通用提示词
This commit is contained in:
committed by
TheWhiteDog9487
parent
5cb7a45ff4
commit
92d1e282d8
@@ -2,15 +2,16 @@ package xyz.thewhitedog9487;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* 所有的代码都在client源集内
|
||||
* @deprecated 目前没有任何用途
|
||||
* @see ServerAddressSpaceFixClient
|
||||
*/
|
||||
@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 String ModID = "serveraddressspacefix";
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(ModID);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
@@ -18,6 +19,5 @@ public class ServerAddressSpaceFix implements ModInitializer {
|
||||
// However, some things (like resources) may still be uninitialized.
|
||||
// Proceed with mild caution.
|
||||
|
||||
LOGGER.info("Hello Fabric world!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user