-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NullPointerException cause game crashed (#15)
* Fix NullPointerException cause game crashed Fixes #14 Fix the NullPointerException error caused by `stitchResults` being null during game initialization. * Add a null check for `stitchResults` before attempting to read its length in the `loadCachedData` method. * Return an empty `ConcurrentHashMap` if `stitchResults` is null in the `loadCachedData` method. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/steves-underwater-paradise/blinkload/issues/14?shareId=XXXX-XXXX-XXXX-XXXX). * The mod description supports localization * upgrade gradle * loom 1.9 * fix: 🐛 Catch `JsonSyntaxException` and log error instead of crashing on `IOException` The cache is now re-created when an exception is thrown while loading the cache, instead of throwing the exception. * docs: 📝 Update changelog --------- Co-authored-by: Steveplays28 <[email protected]>
- Loading branch information
1 parent
6068d5f
commit 9a0474d
Showing
9 changed files
with
55 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
### Changed | ||
### Added | ||
|
||
- The hash to use the list of enabled resource packs on top of the mod list | ||
- Localization support for the mod description (by [Wulian233](https://github.com/Wulian233) in [#15](https://github.com/steves-underwater-paradise/blinkload/pull/15)) | ||
- `zh_cn` mod description translation | ||
|
||
### Fixed | ||
|
||
- Mipmap levels not being saved to the cache, causing broken mipmaps when loading atlas textures from the cache | ||
- An occasional native crash when saving atlas textures to the cache | ||
- Various crashes that could occur due to an invalid cache file or `IOException`s when reading from disk (by [Wulian233](https://github.com/Wulian233) in [#15](https://github.com/steves-underwater-paradise/blinkload/pull/15)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"modmenu.nameTranslation.blinkload": "BlinkLoad", | ||
"modmenu.descriptionTranslation.blinkload": "Caches assets to reduce game loading times." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"modmenu.nameTranslation.blinkload": "BlinkLoad", | ||
"modmenu.descriptionTranslation.blinkload": "缓存资源,加载如眨眼般迅捷" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |