fix(launch): fix mc before 13w25a - #3606
Conversation
审查者指南(小型 PR 中折叠显示)审查者指南旧版 Minecraft 参数构建器现在使用发布日期,以避免向 13w25a 之前的版本添加分辨率参数,同时保留现有的重复参数处理逻辑。 旧版 Minecraft 分辨率参数处理流程图flowchart TD
A["Build legacy Minecraft arguments"] --> B{"minecraftArguments contains --height?"}
B -->|Yes| C["Keep existing arguments"]
B -->|No| D{"releaseTime >= 2013-06-17?"}
D -->|Yes| E["Append height and width parameters"]
D -->|No| F["Keep existing arguments"]
C --> G["Add arguments to dataList"]
E --> G
F --> G
文件级变更
针对相关 Issue 的评估
可能相关的 Issue
提示与命令与 Sourcery 互动
自定义使用体验访问你的 控制面板:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideThe legacy Minecraft argument builder now uses the release date to avoid adding resolution parameters to versions before 13w25a, while preserving existing duplicate-argument handling. Flow diagram for legacy Minecraft resolution argument handlingflowchart TD
A["Build legacy Minecraft arguments"] --> B{"minecraftArguments contains --height?"}
B -->|Yes| C["Keep existing arguments"]
B -->|No| D{"releaseTime >= 2013-06-17?"}
D -->|Yes| E["Append height and width parameters"]
D -->|No| F["Keep existing arguments"]
C --> G["Add arguments to dataList"]
E --> G
F --> G
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
d5e048b to
30dec40
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d5e048b2c7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This PR fixes #2635.
问题
PCL-CE/Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.cs
Lines 1355 to 1361 in d66cb76
使用
minecraftArguments判断进入下面旧版参数生成逻辑,符合原 issue 中的 13w18a 元数据 特征。PCL-CE/Plain Craft Launcher 2/Modules/Minecraft/ModLaunch.cs
Lines 1728 to 1736 in d66cb76
此处总是会添加宽高启动参数。
分析 13w18a 入口可以注意到,其并不支持宽高参数,且在指定相关参数时报错。
分析前一个正式版(1.5.2)注意到,其不支持宽高参数,但在指定无关参数时不会报错。
后一个正式版(1.6)支持宽高参数,第一个支持宽高参数的测试版是 13w25a(2013-06-17)。
影响范围
初步检查,应当是 13w16a-13w25a(不含)。
Sourcery 摘要
错误修复:
Original summary in English
Sourcery 总结
错误修复:
Original summary in English
Summary by Sourcery
Bug Fixes: