diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-09-15 17:46:56 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:31 +0100 |
commit | dcd030c6ed41e080846d1d50cf82e1055ae48edd (patch) | |
tree | 791bf81717a40273fcd6f72b06d3eb24c0c94b1a /src/Network.cpp | |
parent | 2017-09-03 (diff) | |
download | AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar.gz AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar.bz2 AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar.lz AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar.xz AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.tar.zst AltCraft-dcd030c6ed41e080846d1d50cf82e1055ae48edd.zip |
Diffstat (limited to 'src/Network.cpp')
-rw-r--r-- | src/Network.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Network.cpp b/src/Network.cpp index 4606959..cf4fe15 100644 --- a/src/Network.cpp +++ b/src/Network.cpp @@ -47,6 +47,7 @@ std::shared_ptr<Packet> Network::ReceivePacketByPacketId(int packetId, Connectio packet = std::make_shared<PacketHandshake>(); break; } + break; case Login: switch (packetId) { case PacketNameLoginCB::LoginSuccess: @@ -102,17 +103,17 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) { case MultiBlockChange: return std::make_shared<PacketMultiBlockChange>(); case ConfirmTransactionCB: - break; + return std::make_shared<PacketConfirmTransactionCB>(); case CloseWindowCB: - break; + return std::make_shared<PacketCloseWindowCB>(); case OpenWindow: - break; + return std::make_shared<PacketOpenWindow>(); case WindowItems: - break; + return std::make_shared<PacketWindowItems>(); case WindowProperty: - break; + return std::make_shared<PacketWindowProperty>(); case SetSlot: - break; + return std::make_shared<PacketSetSlot>(); case SetCooldown: break; case PluginMessageCB: |