Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Dec 30, 2024
1 parent 14c33d5 commit 28aba38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ void Client::interact(InteractAction action, const PointedThing& pointed)
*/

NetworkPacket pkt(TOSERVER_INTERACT, 1 + 2 + 0);
pkt.setProtoVer(m_proto_ver);
pkt.setProtoVer(m_proto_ver);

pkt << (u8)action;
pkt << myplayer->getWieldIndex();
Expand Down Expand Up @@ -1420,7 +1420,8 @@ void Client::sendPlayerPos()
player->last_movement_speed = movement_speed;
player->last_movement_dir = movement_dir;

pkt.setProtoVer(m_proto_ver);
NetworkPacket pkt(TOSERVER_PLAYERPOS, 12 + 12 + 4 + 4 + 4 + 1 + 1 + 1 + 4 + 4);
pkt.setProtoVer(m_proto_ver);

writePlayerPos(player, &map, &pkt, camera_inverted);

Expand Down

0 comments on commit 28aba38

Please sign in to comment.