Merge pull request #3436 from Moresteck/develop

NOISSUE Corrected the fix for Classic saving, fixes Indev compatibility
This commit is contained in:
Petr Mrázek 2021-01-07 10:27:25 +00:00 committed by GitHub
commit e9abf8a2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,11 @@ public class Launcher extends Applet implements AppletStub
public URL getDocumentBase() public URL getDocumentBase()
{ {
try { try {
return new URL("http", "www.minecraft.net", 80, "/game/", null); // Special case only for Classic versions
if (wrappedApplet.getClass().getCanonicalName().startsWith("com.mojang")) {
return new URL("http", "www.minecraft.net", 80, "/game/", null);
}
return new URL("http://www.minecraft.net/game/");
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
e.printStackTrace(); e.printStackTrace();
} }