This commit is contained in:
sirjonasxx 2021-07-05 00:36:01 +02:00
parent 84abca0370
commit e4c6178fc1

View File

@ -133,14 +133,14 @@ public abstract class Extension extends ExtensionBase {
setPacketInfoManager(PacketInfoManager.readFromPacket(packet));
Constants.UNITY_PACKETS = clientType == HClient.UNITY;
getOnConnectionObservable().fireEvent(l -> l.onConnection(
host, connectionPort, hotelVersion,
clientIdentifier, clientType)
);
if (delayed_init) {
initExtension();
delayed_init = false;
}
getOnConnectionObservable().fireEvent(l -> l.onConnection(
host, connectionPort, hotelVersion,
clientIdentifier, clientType)
);
onStartConnection();
}
else if (packet.headerId() == NetworkExtensionInfo.OUTGOING_MESSAGES_IDS.CONNECTIONEND) {