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

@@ -6,7 +6,7 @@
<groupId>org.openautonomousconnection</groupId> <groupId>org.openautonomousconnection</groupId>
<artifactId>Protocol</artifactId> <artifactId>Protocol</artifactId>
<version>1.0.1-BETA.0.3</version> <version>1.0.1-BETA.0.4</version>
<organization> <organization>
<name>Open Autonomous Connection</name> <name>Open Autonomous Connection</name>
<url>https://open-autonomous-connection.org/</url> <url>https://open-autonomous-connection.org/</url>

View File

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

View File

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