From 435ef23eedc21ccff378ce9388efe69417dcb480 Mon Sep 17 00:00:00 2001 From: DeltaNedas <39013340+DeltaNedas@users.noreply.github.com> Date: Sat, 19 Sep 2020 09:50:02 +0000 Subject: [PATCH] Update CrashSender.java --- core/src/mindustry/net/CrashSender.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/net/CrashSender.java b/core/src/mindustry/net/CrashSender.java index 4e61b91b2d..4a26bb9ee5 100644 --- a/core/src/mindustry/net/CrashSender.java +++ b/core/src/mindustry/net/CrashSender.java @@ -25,9 +25,11 @@ import static mindustry.Vars.net; public class CrashSender{ public static String createReport(String error){ - return "Oh no, Mindustry crashed!\n" - + "Please report this at https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md\n\n" - + "Version: " + Version.combined() + "\n" + String report = "Oh no, Mindustry crashed!\n"; + if(mods.list().size == 0){ + report += "Please report this at https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md\n\n"; + } + return report + "Version: " + Version.combined() + "\n" + mods.list().size + " Mods: " + mods.list().toString(", ", mod -> mod.name) + "\n\n" + error; }