mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2025-01-03 18:38:34 +01:00
Updated Via API usage
This commit is contained in:
parent
66d7398285
commit
c422559a61
@ -779,7 +779,7 @@ public class Protocolr1_6_4Tor1_7_2_5 extends StatelessTransitionProtocol<Client
|
|||||||
}
|
}
|
||||||
}, State.LOGIN, (PacketHandler) PacketWrapper::cancel
|
}, State.LOGIN, (PacketHandler) PacketWrapper::cancel
|
||||||
);
|
);
|
||||||
this.registerClientboundTransition(ClientboundPackets1_6_4.SHARED_KEY, ClientboundLoginPackets.GAME_PROFILE, (PacketHandler) wrapper -> {
|
this.registerClientboundTransition(ClientboundPackets1_6_4.SHARED_KEY, ClientboundLoginPackets.LOGIN_FINISHED, (PacketHandler) wrapper -> {
|
||||||
final ProtocolInfo info = wrapper.user().getProtocolInfo();
|
final ProtocolInfo info = wrapper.user().getProtocolInfo();
|
||||||
final ProtocolMetadataStorage protocolMetadata = wrapper.user().get(ProtocolMetadataStorage.class);
|
final ProtocolMetadataStorage protocolMetadata = wrapper.user().get(ProtocolMetadataStorage.class);
|
||||||
wrapper.read(Types.SHORT_BYTE_ARRAY); // shared secret
|
wrapper.read(Types.SHORT_BYTE_ARRAY); // shared secret
|
||||||
|
@ -53,7 +53,7 @@ public class Protocolr1_7_2_5Tor1_7_6_10 extends AbstractProtocol<ClientboundPac
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerPackets() {
|
protected void registerPackets() {
|
||||||
this.registerClientbound(State.LOGIN, ClientboundLoginPackets.GAME_PROFILE, new PacketHandlers() {
|
this.registerClientbound(State.LOGIN, ClientboundLoginPackets.LOGIN_FINISHED, new PacketHandlers() {
|
||||||
@Override
|
@Override
|
||||||
public void register() {
|
public void register() {
|
||||||
map(Types.STRING); // uuid
|
map(Types.STRING); // uuid
|
||||||
|
@ -110,7 +110,7 @@ public class Protocolr1_7_6_10Tor1_8 extends AbstractProtocol<ClientboundPackets
|
|||||||
map(Types.SHORT_BYTE_ARRAY, Types.BYTE_ARRAY_PRIMITIVE); // verify token
|
map(Types.SHORT_BYTE_ARRAY, Types.BYTE_ARRAY_PRIMITIVE); // verify token
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.registerClientbound(State.LOGIN, ClientboundLoginPackets.GAME_PROFILE, new PacketHandlers() {
|
this.registerClientbound(State.LOGIN, ClientboundLoginPackets.LOGIN_FINISHED, new PacketHandlers() {
|
||||||
@Override
|
@Override
|
||||||
public void register() {
|
public void register() {
|
||||||
read(Types.STRING); // uuid
|
read(Types.STRING); // uuid
|
||||||
|
Loading…
Reference in New Issue
Block a user