File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/one/devos/nautical/teabridge/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1111import com .mojang .serialization .JsonOps ;
1212
1313import net .minecraft .CrashReport ;
14+ import net .minecraft .ReportType ;
1415import one .devos .nautical .teabridge .TeaBridge ;
1516import one .devos .nautical .teabridge .discord .Discord ;
1617
@@ -27,7 +28,7 @@ public static void handle(CrashReport crash) {
2728 String message ;
2829 try {
2930 HttpResponse <String > response = TeaBridge .CLIENT .send (HttpRequest .newBuilder (LOG_UPLOAD_URI )
30- .POST (HttpRequest .BodyPublishers .ofString ("content=" + URLEncoder .encode (crash .getDetails ( ), StandardCharsets .UTF_8 )))
31+ .POST (HttpRequest .BodyPublishers .ofString ("content=" + URLEncoder .encode (crash .getFriendlyReport ( ReportType . CRASH ), StandardCharsets .UTF_8 )))
3132 .header ("Content-Type" , "application/x-www-form-urlencoded; charset=UTF-8" )
3233 .build (), HttpResponse .BodyHandlers .ofString ());
3334 if (response .statusCode () / 100 != 2 )
You can’t perform that action at this time.
0 commit comments