

PackCENHeaderFix
This mod eliminates the problem with the "invalid CEN header (bad entry name or comment)" error that sometimes occurs when loading resource packs in Minecraft.
Problem Solution
The mod replaces Java's standard Zip implementation with a more reliable version from Apache Commons Compress. This completely eliminates the error related to corrupted archive headers.
Typical Situation
Imagine: you downloaded a resource pack from an author, placed it in the appropriate folder, and tried to activate it as usual. But instead, an error message appears in the game logs:
This problem occurs in exceptional cases and is not displayed in Mojang's official bug tracker. Over the past few years, it has been extremely rare, and only a few resource pack authors have encountered it accidentally.
Technical Features
The cause of this error is not fully understood, but it is known to affect only the standard Zip implementation in Java. Although corrupted resource packs can be loaded forcibly (they won't appear in the standard selector), it's much better to completely fix the problem.
Project Build
To compile the mod after cloning the repository, use the command:
./gradlew clean build
Do not execute individual build commands separately. After the process is completed, a jars folder with ready files will appear in the root directory.
Usage in Modpacks
The mod can be freely included in modpacks when complying with the license terms. However, use in packages that distribute the full version of Minecraft (including mod files, configurations, shaders, resource packs, libraries, and launcher) is prohibited.
Licensing
The project is distributed with additional restrictions beyond the original license to prevent unwanted behavior. Details can be found in the 404Setup Public License.