Small bug fix

This commit is contained in:
UnlegitDqrk
2026-02-22 18:30:57 +01:00
parent e20ee03682
commit d5b880d70c
3 changed files with 3 additions and 10 deletions

View File

@@ -201,7 +201,7 @@ public final class ProtocolBridge {
*/
private void registerPackets() {
// 1.0.0-BETA packets
registerPacket(AuthPacket::new);
registerPacket(() -> new AuthPacket(this));
registerPacket(INSQueryPacket::new);
registerPacket(() -> new INSResponsePacket(this));
registerPacket(WebRequestPacket::new);

View File

@@ -42,15 +42,8 @@ public final class AuthPacket extends OACPacket {
* @param protocolBridge The protocol context of the current instance.
*/
public AuthPacket(ProtocolBridge protocolBridge) {
this();
this.protocolBridge = protocolBridge;
}
/**
* Registration constructor.
*/
public AuthPacket() {
super(8, ProtocolVersion.PV_1_0_0_BETA, ProtocolVersion.PV_1_0_1_BETA);
this.protocolBridge = protocolBridge;
}
@Override