From fca2f5427ed4c5b49abf39b673babd9efaf2e7c4 Mon Sep 17 00:00:00 2001 From: Patbox <39821509+Patbox@users.noreply.github.com> Date: Sat, 14 Jan 2023 11:07:13 +0100 Subject: [PATCH] Fix custom system messages being send as signed ones --- gradle.properties | 2 +- .../java/eu/pb4/styledchat/other/StyledChatSentMessage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 9cfe407..a6e0497 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ fabric_version=0.68.1+1.19.3 # Mod Properties - mod_version = 2.1.1+1.19.3 + mod_version = 2.1.2+1.19.3 maven_group = eu.pb4 archives_base_name = styled-chat diff --git a/src/main/java/eu/pb4/styledchat/other/StyledChatSentMessage.java b/src/main/java/eu/pb4/styledchat/other/StyledChatSentMessage.java index 2e865ab..54709e9 100644 --- a/src/main/java/eu/pb4/styledchat/other/StyledChatSentMessage.java +++ b/src/main/java/eu/pb4/styledchat/other/StyledChatSentMessage.java @@ -77,7 +77,7 @@ public void send(ServerPlayerEntity receiver, boolean filterMaskEnabled, Message ? baseInput : message.getContent(); - receiver.networkHandler.sendChatMessage(message, StyledChatUtils.createParameters(StyledChatStyles.getCustom(id, params.name(), input, params.targetName(), source != null ? source : StyledChatMod.server.getCommandSource()))); + receiver.networkHandler.sendProfilelessChatMessage(message.getContent(), StyledChatUtils.createParameters(StyledChatStyles.getCustom(id, params.name(), input, params.targetName(), source != null ? source : StyledChatMod.server.getCommandSource()))); } }