mirror of
https://github.com/unmojang/FjordLauncher.git
synced 2025-08-03 10:16:31 -04:00
Add betacraft skin server support for legacy online fixes
Signed-off-by: cat <cat@plan9.rocks>
This commit is contained in:
parent
ae5541a3fd
commit
6d01093575
@ -143,6 +143,12 @@ final class SkinFix {
|
|||||||
case "s3.amazonaws.com":
|
case "s3.amazonaws.com":
|
||||||
case "skins.minecraft.net":
|
case "skins.minecraft.net":
|
||||||
return stripIfPrefixed(address.getPath(), "/MinecraftSkins/");
|
return stripIfPrefixed(address.getPath(), "/MinecraftSkins/");
|
||||||
|
|
||||||
|
case "betacraft.uk":
|
||||||
|
for (String prefix : new String[]{"/skin/", "/MinecraftSkins/"}) {
|
||||||
|
String result = stripIfPrefixed(address.getPath(), prefix);
|
||||||
|
if (result != null) return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@ -159,6 +165,12 @@ final class SkinFix {
|
|||||||
case "s3.amazonaws.com":
|
case "s3.amazonaws.com":
|
||||||
case "skins.minecraft.net":
|
case "skins.minecraft.net":
|
||||||
return stripIfPrefixed(address.getPath(), "/MinecraftCloaks/");
|
return stripIfPrefixed(address.getPath(), "/MinecraftCloaks/");
|
||||||
|
|
||||||
|
case "betacraft.uk":
|
||||||
|
if (address.getPath().equals("/cloak/get.jsp"))
|
||||||
|
return stripIfPrefixed(address.getQuery(), "user=");
|
||||||
|
|
||||||
|
return stripIfPrefixed(address.getPath(), "/MinecraftCloaks/");
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user