Skip to content

修复 1.5.2 等版本 LegacyFabric 无法安装的问题#5413

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
CiiLu:exporttt
Feb 6, 2026
Merged

修复 1.5.2 等版本 LegacyFabric 无法安装的问题#5413
Glavo merged 1 commit intoHMCL-dev:mainfrom
CiiLu:exporttt

Conversation

@CiiLu
Copy link
Copy Markdown
Contributor

@CiiLu CiiLu commented Feb 3, 2026

这个版本 LegacyFabric 也是使用的 LaunchWrapper,现在的实现会在安装的时候直接提示不兼容
image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an installation issue with LegacyFabric for older Minecraft versions (like 1.5.2) that use LaunchWrapper. The previous implementation incorrectly applied a compatibility check designed for modern Fabric, which prevented LegacyFabric installation on LaunchWrapper-based versions even though LegacyFabric is specifically designed to support these old versions.

Changes:

  • Removed incompatible main class check from LegacyFabricInstallTask
  • Cleaned up unused imports (UnsupportedInstallationException and related constants)
  • Reorganized java.util imports to use explicit imports instead of wildcard

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo merged commit c2c542a into HMCL-dev:main Feb 6, 2026
8 checks passed
@CiiLu CiiLu deleted the exporttt branch February 12, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants