diff options
author | LaG1924 <lag1924@gmail.com> | 2023-07-08 20:30:25 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2023-07-08 21:24:04 +0200 |
commit | c984afdf47ef31511024c6b70bd4b4c4e64f56a6 (patch) | |
tree | 3c539c9e7de841c6616f532dadb7c8c1ef552d95 /src/Packet.hpp | |
parent | Merge pull request #80 from LaG1924/ftr/better-water (diff) | |
download | AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.gz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.bz2 AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.lz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.xz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.zst AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.zip |
Diffstat (limited to 'src/Packet.hpp')
-rw-r--r-- | src/Packet.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp index 56a2e5e..00e151a 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -1091,7 +1091,7 @@ struct PacketChatMessageSB : Packet { std::string Message; - PacketChatMessageSB(const std::string msg) : Message(msg) {}; + PacketChatMessageSB(const std::string& msg) : Message(msg) {}; }; struct PacketPlayerDigging : Packet { @@ -1184,7 +1184,7 @@ struct PacketPluginMessageSB : Packet { return PacketNamePlaySB::PluginMessageSB; } - PacketPluginMessageSB(const std::string& channel, const std::vector<unsigned char> data) : Channel(channel), Data(data) {} + PacketPluginMessageSB(const std::string& channel, const std::vector<unsigned char>& data) : Channel(channel), Data(data) {} std::string Channel; std::vector<unsigned char> Data; @@ -1209,7 +1209,7 @@ struct PacketClientSettings : Packet { } PacketClientSettings( - const std::string locale, + const std::string& locale, unsigned char viewDistance, int chatMode, bool chatColors, |