Fix cloaks conflicting with join server endpoint

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-01-08 15:36:36 +00:00 committed by GitHub
parent be7f81421a
commit 52b3a54e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,9 @@ final class SkinFix {
private static String findCapeOwner(URL address) { private static String findCapeOwner(URL address) {
switch (address.getHost()) { switch (address.getHost()) {
case "www.minecraft.net": case "www.minecraft.net":
if (!address.getPath().equals("/cloak/get.jsp"))
return null;
return stripIfPrefixed(address.getQuery(), "user="); return stripIfPrefixed(address.getQuery(), "user=");
case "s3.amazonaws.com": case "s3.amazonaws.com":