Skip to content

1.0.5 — OptiFine 26.3 (K3_pre1) 支持

Choose a tag to compare

@Kynarain Kynarain released this 29 Nov 22:52
· 8 commits to main since this release

1.0.5: OptiFine 26.3 (K3_pre1) support, and custom profile names

OptiFine has published a 26.3 build (still "Forge N/A"): preview_OptiFine_26.3_HD_U_K3_pre1.jar, with Forge
26.3-66.1.9. Verified in a world: client joined a Forge 26.3 dedicated server, 222 [OptiFine] log lines, 0 crash
reports, 579 classes patched.

Fix that made 26.3 work: OptiFine 26.3 resolves every resource-pack root to a File, and a mod pack is jar-backed, so
Path.toFile() threw UnsupportedOperationException inside net.optifine.util.ResUtils during the first resource reload.
CompatFixes now rewrites that call to a helper that returns null for non-default filesystems (the method already
treats a null File as "nothing in this pack"), and - new - the compat pass also runs over OptiFine's own classes when
they are staged into the generated mod jar. Own classes had never been touched before, which is why the first attempt
looked ineffective.

Also fixed: a launcher profile whose id is not shaped like "-forge-" (for example 26.3-Forge-pretest) used
to degrade to "Minecraft " and fail to find the base jar. RuntimeInfo now falls back to the version json
(inheritsFrom plus the net.minecraftforge:forge:- coordinate), searching --gameDir, its parents,
versions// and %APPDATA%.minecraft.

Install helper: tools/install-official-263.ps1 builds versions/26.3-Forge-pretest in the official launcher folder
(profile json, mods/, optiforge/, every library the profile lists, launcher_profiles.json entry with the bundled
JDK 25). Verified by launching that layout: Minecraft 26.3, Forge 66.1.9, base jar 26.3.jar, 0 crashes.

Files: 32 per-Minecraft-version jars (added +mc26.3, Forge 66.1.9, OptiFine K3_pre1, Java 25); all readable and all
SHA-256 distinct. The four plain artifacts are unchanged in name.