forked from TuxCoding/FastLogin
@ -262,8 +262,11 @@ public class VerifyResponseTask implements Runnable {
|
|||||||
startPacket.getStrings().write(0, username);
|
startPacket.getStrings().write(0, username);
|
||||||
|
|
||||||
EquivalentConverter<WrappedProfileKeyData> converter = BukkitConverters.getWrappedPublicKeyDataConverter();
|
EquivalentConverter<WrappedProfileKeyData> converter = BukkitConverters.getWrappedPublicKeyDataConverter();
|
||||||
var key = new WrappedProfileKeyData(clientKey.expiry(), clientKey.key(), sharedSecret);
|
var wrappedKey = Optional.ofNullable(clientKey).map(key ->
|
||||||
startPacket.getOptionals(converter).write(0, Optional.ofNullable(key));
|
new WrappedProfileKeyData(clientKey.expiry(), clientKey.key(), clientKey.signature())
|
||||||
|
);
|
||||||
|
|
||||||
|
startPacket.getOptionals(converter).write(0, wrappedKey);
|
||||||
} else {
|
} else {
|
||||||
//uuid is ignored by the packet definition
|
//uuid is ignored by the packet definition
|
||||||
WrappedGameProfile fakeProfile = new WrappedGameProfile(UUID.randomUUID(), username);
|
WrappedGameProfile fakeProfile = new WrappedGameProfile(UUID.randomUUID(), username);
|
||||||
|
Reference in New Issue
Block a user