Skip to content

Commit

Permalink
Fix: Adding a space at the end of the /fzmm command will no longer …
Browse files Browse the repository at this point in the history
…cause an error when executing the command
  • Loading branch information
Zailer43 committed Sep 14, 2024
1 parent 67ba49f commit e36b2ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e36b2ce

Please sign in to comment.