diff --git a/src/main/java/fzmm/zailer/me/mixin/modify_fzmm_command/modify_chat/ChatScreenMixin.java b/src/main/java/fzmm/zailer/me/mixin/modify_fzmm_command/modify_chat/ChatScreenMixin.java index eb01ce72..39fec801 100644 --- a/src/main/java/fzmm/zailer/me/mixin/modify_fzmm_command/modify_chat/ChatScreenMixin.java +++ b/src/main/java/fzmm/zailer/me/mixin/modify_fzmm_command/modify_chat/ChatScreenMixin.java @@ -53,8 +53,9 @@ public abstract class ChatScreenMixin { @ModifyReturnValue(method = "normalize", at = @At(value = "RETURN")) private String fzmm$avoidNormalizeWithFzmmCommand(String str) { - if (this.fzmm$isFzmmCommand(str)) - return this.chatField.getText(); + if (this.fzmm$isFzmmCommand(str)) { + return this.chatField.getText().trim(); + } return str; }