Skip to content

Commit

Permalink
version 2.2.2
Browse files Browse the repository at this point in the history
minecraft doesn't line \n symbol in chat so replace it on a space
  • Loading branch information
SvineruS committed Aug 30, 2020
1 parent 14acb2c commit 0207948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ua.kpi.mc</groupId>
<artifactId>mctotg</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
<packaging>jar</packaging>

<name>Mc2TgBridge</name>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ua/kpi/mc/mctotg/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static void TgToMc(Update update) {
}

message_text = message_text.replaceAll("[^\\x00-\\x7Fа-яА-ЯёЁіІїЇ]", "✭");
message_text = message_text.replaceAll("\n", " ");

int msg_id = update.message().messageId();
String link = "https://t.me/" + update.message().chat().username() + "/" + msg_id;
Expand Down

0 comments on commit 0207948

Please sign in to comment.