aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/chat
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/chat')
-rw-r--r--azalea-client/src/plugins/chat/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/chat/mod.rs b/azalea-client/src/plugins/chat/mod.rs
index e0a41d49..7fd14e26 100644
--- a/azalea-client/src/plugins/chat/mod.rs
+++ b/azalea-client/src/plugins/chat/mod.rs
@@ -198,7 +198,7 @@ impl Client {
pub fn write_chat_packet(&self, message: &str) {
self.ecs.lock().write_message(SendChatKindEvent {
entity: self.entity,
- content: message.to_string(),
+ content: message.to_owned(),
kind: ChatKind::Message,
});
}
@@ -211,7 +211,7 @@ impl Client {
pub fn write_command_packet(&self, command: &str) {
self.ecs.lock().write_message(SendChatKindEvent {
entity: self.entity,
- content: command.to_string(),
+ content: command.to_owned(),
kind: ChatKind::Command,
});
}