Updated Via API usage

This commit is contained in:
RaphiMC 2024-10-28 22:50:09 +01:00
parent 66d7398285
commit c422559a61
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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