mirror of
https://github.com/TheWhiteDog9487/ServerAddressSpaceFix.git
synced 2026-06-15 11:14:44 +08:00
使用文件系统监听器使配置文件被外部更改时可以自动重载到游戏内 解决直接连接窗口内输入框里的服务器IP没有被移除空格处理的问题 在移除空格之后打印日志 添加英文README 重新给main入口类添加`@Deprecated`标记,这东西确实用不到,后面看要不要直接删了 为AI Agent添加AGENTS.md文件以指示通用提示词
23 lines
707 B
Java
23 lines
707 B
Java
package xyz.thewhitedog9487;
|
|
|
|
import net.fabricmc.api.ModInitializer;
|
|
|
|
/**
|
|
* 所有的代码都在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.
|
|
|
|
@Override
|
|
public void onInitialize() {
|
|
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
|
// However, some things (like resources) may still be uninitialized.
|
|
// Proceed with mild caution.
|
|
|
|
}
|
|
} |