Small bug fix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.openautonomousconnection</groupId>
|
||||
<artifactId>Protocol</artifactId>
|
||||
<version>1.0.1-BETA.0.3</version>
|
||||
<version>1.0.1-BETA.0.4</version>
|
||||
<organization>
|
||||
<name>Open Autonomous Connection</name>
|
||||
<url>https://open-autonomous-connection.org/</url>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user