diff --git a/LauncherAuthlib/source/yggdrasil/YggdrasilMinecraftSessionService.java b/LauncherAuthlib/source/yggdrasil/YggdrasilMinecraftSessionService.java old mode 100644 new mode 100755 index aabd651..eb1ab86 --- a/LauncherAuthlib/source/yggdrasil/YggdrasilMinecraftSessionService.java +++ b/LauncherAuthlib/source/yggdrasil/YggdrasilMinecraftSessionService.java @@ -142,6 +142,7 @@ properties.put(ClientLauncher.CLOAK_DIGEST_PROPERTY, new Property( ClientLauncher.CLOAK_DIGEST_PROPERTY, SecurityHelper.toHex(pp.cloak.digest), "")); } + properties.put("textures", new Property("textures", "")); // To make sure it's not queried every time } public static GameProfile toGameProfile(PlayerProfile pp) { diff --git a/compat/BungeeCord.patch b/compat/BungeeCord.patch index c3ec4eb..481ac3e 100755 --- a/compat/BungeeCord.patch +++ b/compat/BungeeCord.patch @@ -5,7 +5,7 @@ @@ -58,6 +58,7 @@ - net.md_5.bungee.Bootstrap + net.md_5.bungee.Bootstrap + Launcher.jar ${describe} ${maven.build.timestamp} @@ -15,7 +15,7 @@ --- a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java +++ b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java @@ -5,9 +5,9 @@ public class Bootstrap - + public static void main(String[] args) throws Exception { - if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) < 51.0 ) @@ -31,18 +31,18 @@ --- a/pom.xml +++ b/pom.xml @@ -65,9 +65,9 @@ - + unknown - 4.0.33.Final - 1.7 - 1.7 -+ 4.0.34.Final ++ 4.0.37.Final + 1.8 + 1.8 UTF-8 - + @@ -96,6 +96,13 @@ 1.14.8 provided @@ -55,7 +55,7 @@ + /full/path/to/Launcher.jar + - + @@ -116,31 +123,6 @@ @@ -96,7 +96,7 @@ @@ -60,6 +60,9 @@ import net.md_5.bungee.protocol.packet.StatusRequest; import net.md_5.bungee.protocol.packet.StatusResponse; import net.md_5.bungee.util.BoundedArrayList; - + +import launcher.client.PlayerProfile; +import launcher.request.auth.CheckServerRequest; + @@ -142,7 +142,7 @@ } - } - }; - + - HttpClient.get( authURL, ch.getHandle().eventLoop(), handler ); + // Successful login + loginProfile = new LoginResult(pp); @@ -154,7 +154,7 @@ + } + }); } - + private void finish() diff --git a/proxy/src/main/java/net/md_5/bungee/connection/LoginResult.java b/proxy/src/main/java/net/md_5/bungee/connection/LoginResult.java index 9311ef7..98bba42 100644 @@ -163,7 +163,7 @@ @@ -3,6 +3,17 @@ package net.md_5.bungee.connection; import lombok.AllArgsConstructor; import lombok.Data; - + +import java.net.URL; +import java.io.IOException; +import java.io.FileNotFoundException; @@ -181,7 +181,7 @@ @@ -11,6 +22,20 @@ public class LoginResult private String id; private Property[] properties; - + + public LoginResult(PlayerProfile pp) { + id = ClientLauncher.toHash(pp.uuid); + List properitesList = new ArrayList<>(4);