ShatteredPrism/launcher/minecraft/auth
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
..
flows Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
steps Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
AccountData.cpp Correctly save Mojang account type 2023-11-16 12:33:03 -05:00
AccountData.h Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
AccountList.cpp Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
AccountList.h Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
AccountTask.cpp chore: update license headers 2023-08-14 18:17:05 +02:00
AccountTask.h chore: update license headers 2023-08-14 18:17:05 +02:00
AuthRequest.cpp chore: update license headers 2023-08-14 18:17:05 +02:00
AuthRequest.h chore: reformat 2023-08-14 18:16:53 +02:00
AuthSession.cpp Fix offline multiplayer in 1.16.4-1.16.5 2024-03-04 21:53:58 -05:00
AuthSession.h Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
AuthStep.cpp chore: reformat 2023-08-14 18:16:53 +02:00
AuthStep.h chore: reformat 2023-08-14 18:16:53 +02:00
MinecraftAccount.cpp Fix offline accounts 2023-11-16 01:15:17 -05:00
MinecraftAccount.h Merge tag '8.0' into unmojang-8.0 2023-11-15 14:37:14 -05:00
Parsers.cpp chore: reformat 2023-08-14 18:16:53 +02:00
Parsers.h chore: reformat 2023-08-14 18:16:53 +02:00
Yggdrasil.cpp Removed mojang 2023-09-25 17:44:04 +03:00
Yggdrasil.h Removed mojang 2023-09-25 17:44:04 +03:00