update MCUtil.cmpFromMessage to use proper JSON
This commit is contained in:
@@ -29,7 +29,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ * @return
|
+ * @return
|
||||||
+ */
|
+ */
|
||||||
+ public static IChatBaseComponent cmpFromMessage(String str) {
|
+ public static IChatBaseComponent cmpFromMessage(String str) {
|
||||||
+ return IChatBaseComponent.ChatSerializer.a("{text:\"" + REPLACE_QUOTES.matcher(str).replaceAll("\\\"") + "\"}");
|
+ return IChatBaseComponent.ChatSerializer.a("{\"text\":\"" + REPLACE_QUOTES.matcher(str).replaceAll("\\\"") + "\"}");
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
|
|||||||
Reference in New Issue
Block a user