ShatteredPrism/launcher/minecraft/launch
Evan Goode 639a7820fe Fix offline multiplayer in 1.16.4-1.16.5
Resolves https://github.com/fn2006/PollyMC/issues/150

If the game is launched in offline mode, pass invalid API servers via
the -Dminecraft.api.* system properties. This workaround is mentioned
here:
https://github.com/FabricMC/fabric-loom/issues/915#issuecomment-1609154390

I think this change is appropriate to make here in PollyMC even though
the Fabric developers decided against using it there. If a user wants to
override the API servers back to the vanilla values (in order to use
Auth Me or something), they can do so by setting the following custom
JVM args on the instance:

-Dminecraft.api.env=PROD
-Dminecraft.api.auth.host=https://authserver.mojang.com
-Dminecraft.api.account.host=https://api.mojang.com
-Dminecraft.api.session.host=https://sessionserver.mojang.com
-Dminecraft.api.services.host=https://api.minecraftservices.com

Previously, auth args would override any user-specified args, but this
patch also changes that behavior so user-specified args are now passed
last.
2024-03-04 21:53:58 -05:00
..
ClaimAccount.cpp authlib-injector: Mark correct account as in use 2023-11-15 12:11:12 -05:00
ClaimAccount.h chore: reformat 2023-08-14 18:16:53 +02:00
CreateGameFolders.cpp chore: reformat 2023-08-14 18:16:53 +02:00
CreateGameFolders.h chore: reformat 2023-08-14 18:16:53 +02:00
ExtractNatives.cpp fix: remove meta OpenAL workaround 2023-08-15 10:51:48 +02:00
ExtractNatives.h chore: reformat 2023-08-14 18:16:53 +02:00
LauncherPartLaunch.cpp Fix offline multiplayer in 1.16.4-1.16.5 2024-03-04 21:53:58 -05:00
LauncherPartLaunch.h chore: reformat 2023-08-14 18:16:53 +02:00
MinecraftServerTarget.cpp chore: reformat 2023-08-14 18:16:53 +02:00
MinecraftServerTarget.h Replace typedef with using 2023-10-24 01:36:27 -07:00
ModMinecraftJar.cpp chore: update license headers 2023-08-14 18:17:05 +02:00
ModMinecraftJar.h chore: reformat 2023-08-14 18:16:53 +02:00
PrintInstanceInfo.cpp chore: reformat 2023-08-14 18:16:53 +02:00
PrintInstanceInfo.h chore: reformat 2023-08-14 18:16:53 +02:00
ReconstructAssets.cpp chore: reformat 2023-08-14 18:16:53 +02:00
ReconstructAssets.h chore: reformat 2023-08-14 18:16:53 +02:00
ScanModFolders.cpp chore: update license headers 2023-08-14 18:17:05 +02:00
ScanModFolders.h chore: reformat 2023-08-14 18:16:53 +02:00
VerifyJavaInstall.cpp chore: update license headers 2023-08-14 18:17:05 +02:00
VerifyJavaInstall.h chore: update license headers 2023-08-14 18:17:05 +02:00