summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUIS <uis9936@gmail.com>2020-08-06 18:47:19 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-24 10:48:13 +0200
commitb16afa14fe7ce4f8f0d8706358830f3ec518ce61 (patch)
treeae417b7e8a13436751c34ea1a8f0f1b916278051
parentAdded CMakeLists.txt.user to .gitignore (diff)
downloadAltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar.gz
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar.bz2
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar.lz
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar.xz
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.tar.zst
AltCraft-b16afa14fe7ce4f8f0d8706358830f3ec518ce61.zip
Diffstat (limited to '')
-rw-r--r--src/Network.cpp4
-rw-r--r--src/NetworkClient.hpp4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/Network.cpp b/src/Network.cpp
index 4280b50..4332c29 100644
--- a/src/Network.cpp
+++ b/src/Network.cpp
@@ -224,6 +224,8 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
break;
case OpenSignEditor:
break;
+ case CraftRecipeResponse:
+ break;
case PlayerAbilitiesCB:
break;
case CombatEvent:
@@ -258,7 +260,6 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
break;
case EntityVelocity:
return std::make_shared<PacketEntityVelocity>();
- break;
case EntityEquipment:
break;
case SetExperience:
@@ -287,7 +288,6 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
break;
case EntityTeleport:
return std::make_shared<PacketEntityTeleport>();
- break;
case EntityProperties:
break;
case EntityEffect:
diff --git a/src/NetworkClient.hpp b/src/NetworkClient.hpp
index f372468..bde5fdf 100644
--- a/src/NetworkClient.hpp
+++ b/src/NetworkClient.hpp
@@ -12,8 +12,6 @@ enum ConnectionState : unsigned char;
class NetworkClient {
std::unique_ptr<Network> network;
- std::queue <std::shared_ptr<Packet>> toSend;
- std::queue <std::shared_ptr<Packet>> toReceive;
ConnectionState state;
int compressionThreshold = -1;
std::chrono::steady_clock::time_point timeOfLastKeepAlivePacket;
@@ -23,4 +21,4 @@ class NetworkClient {
public:
NetworkClient(std::string address, unsigned short port, std::string username);
~NetworkClient();
-}; \ No newline at end of file
+};