Quick_Start v1.0.2 для Minecraft 1.20.6 (Fabric)
Это не последняя версия. Последняя для 1.20.6 · Fabric — v2.0.0Открыть v2.0.0 →
Тестовая версия — возможны ошибки. Для игры без сюрпризов выберите релиз v2.0.0.
Файлы · 1
Что изменилось
v1.0.2
Bug Fixes
- Fixed server detection matching other Minecraft clients: any Java process containing "fabric"/"forge" in its command line could be mistaken for the server and force-killed by the stop button. Client processes (launched with --accessToken) are now excluded
- Stricter port-based PID lookup: only netstat entries whose local address actually ends with :25565 are matched, instead of any line containing the port number
Internal
- Removed the needless singleton instance — all state was already static, so every method is now static
- Reduced public API surface: statusWatcher, addLocalhostServerIfNeeded and checkExistingServer are now private
- Unified repeated state-transition code (10+ copy-pasted sites) into markRunning() / adoptProcess() / adoptPortProcess() / abortLaunch() helpers
- Pause menu button: merged two nearly identical add-button methods into one, and replaced the fragile "find our button by its ▶ label" removal with a direct field reference
v1.0.2
バグ修正
- サーバー検出が他のMinecraftクライアントを誤認識する問題を修正: コマンドラインに"fabric"/"forge"を含むJavaプロセスがすべてサーバー扱いされ、停止ボタンで別のゲームインスタンスを強制終了する恐れがあった。クライアントプロセス(--accessToken付きで起動される)を除外
- ポートからのPID検索を厳密化: ポート番号を含むだけの行ではなく、ローカルアドレスが:25565で終わるnetstatエントリのみを対象に
内部改善
- 不要なシングルトンinstanceを削除 — 状態はすべてstaticだったため、全メソッドをstatic化
- 公開APIを縮小: statusWatcher・addLocalhostServerIfNeeded・checkExistingServerを非公開に
- 10箇所以上にコピペされていた状態遷移コードをmarkRunning() / adoptProcess() / adoptPortProcess() / abortLaunch()ヘルパーに統一
- ESCメニューのボタン: ほぼ同一の追加メソッド2つを1つに統合し、「▶ラベルで自分のボタンを探して消す」壊れやすい方式をフィールド参照に置き換え