summaryrefslogtreecommitdiffstats
path: root/src/Packet.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Packet.hpp')
-rw-r--r--src/Packet.hpp6
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,