-
Notifications
You must be signed in to change notification settings - Fork 811
[Feature] [Bugfix] 资源包有关优化与修复 #4980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
需要懂其他语言的人完善 i18n |
在BMC4中测试时发现BMC4会判定所有资源包兼容,与原版表现不符,会导致启用/禁用功能失效,故添加警告
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我在 CF 和 MR 分别下载了好几个资源包,结果都显示「游戏版本元数据缺失」。如果真的要为这个显示警告的话,可能很多人都会迷惑。
可能是我搞错了,我还在弄清楚这一块。
HMCLCore/src/main/java/org/jackhuang/hmcl/resourcepack/ResourcepackFile.java
Outdated
Show resolved
Hide resolved
|
我下载了 Translations for Sodium,放在 1.21.9~1.21.11 的资源包文件夹内,启动器会显示「游戏版本元数据缺失」。1.21.8 和 1.21.1 正常。不知道是不是 bug。 |
Co-authored-by: 3gf8jv4dv <[email protected]>
Co-authored-by: 3gf8jv4dv <[email protected]>
确实是,我在修 |
…esourcepack-enhancement
Solved |
用户在尝试启用/禁用资源包的时候会弹提示的,虽然只弹一次但是会给5s阅读时间 |
HMCLCore/src/main/java/org/jackhuang/hmcl/mod/ResourcePackFile.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 47 out of 47 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (3)
HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/UpdatesPage.java:305
- In the UpdateTask constructor, the lambda on line 295 captures the
isDisabledvariable and usesModManager.DISABLED_EXTENSION. While ModManager inherits this constant from LocalFileManager, it would be clearer and more maintainable to useLocalFileManager.DISABLED_EXTENSIONsince this code now works with generic LocalAddonFile instances that could be from ResourcePackManager as well.
HMCLCore/src/main/java/org/jackhuang/hmcl/mod/LocalModFile.java:164 - This method overrides LocalAddonFile.setOld; it is advisable to add an Override annotation.
public void setOld(boolean old) throws IOException {
HMCLCore/src/main/java/org/jackhuang/hmcl/mod/LocalModFile.java:103
- This method overrides LocalAddonFile.getFile; it is advisable to add an Override annotation.
public Path getFile() {
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
HMCLCore/src/main/java/org/jackhuang/hmcl/mod/ResourcePackZipFile.java
Outdated
Show resolved
Hide resolved
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/download/DownloadPage.java # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/download/DownloadPage.java # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java
具体改动
LocalAddonFile和LocalFileManager<T extends LocalAddonFile>,使更新对于模组以外的东西(如资源包和光影包)也能适用,从而实现了资源包更新(不保留旧版本)