Work around 3rd party launchers who build incorrect classpaths Closes #10797

This commit is contained in:
LexManos committed 2026-04-03 09:31:40 -07:00
1 parent 5ab792f1d7
commit 5f37e8af53
2 files changed
+8 -6

No files matched your search

@@ -25,7 +25,9 @@ sealed abstract class ForgeProdLaunchHandler extends CommonLaunchHandler {
@Override
public List<Path> getMinecraftPaths() {
return List.of(getPathFromResource("net/minecraft/client/Minecraft.class"));
// We use a marker because 3rd party launcher don't build their class paths correctly
// https://github.com/MinecraftForge/MinecraftForge/issues/10797
return List.of(getPathFromResource(".forge_patched_minecraft"));
}
}