mirror of
https://github.com/GTNewHorizons/BetterCrashes.git
synced 2026-11-20 03:59:45 +00:00
5 files changed
+13
-27
No files matched your search
@@ -111,7 +111,7 @@ public class CrashReportMixin implements IPatchedCrashReport {
|
||||
.append("Time: ").append(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z").format(new Date())).append("\n")
|
||||
.append("Description: ").append(description).append("\n\n")
|
||||
.append(stacktraceToString(cause).replace("\t", " ")) // Vanilla's getCauseStackTraceOrString doesn't
|
||||
// print causes and suppressed
|
||||
// print causes and suppressed
|
||||
// exceptions
|
||||
.append(
|
||||
"\n\nA detailed walkthrough of the error, its code path and all known details is as follows:\n");
|
||||
|
||||
@@ -12,11 +12,7 @@ import java.util.Queue;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.SoundHandler;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.gui.GuiIngame;
|
||||
import net.minecraft.client.gui.GuiMainMenu;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.gui.*;
|
||||
import net.minecraft.client.multiplayer.WorldClient;
|
||||
import net.minecraft.client.network.NetHandlerPlayClient;
|
||||
import net.minecraft.client.renderer.EntityRenderer;
|
||||
@@ -213,8 +209,8 @@ public abstract class MinecraftMixin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param report
|
||||
* @author Runemoro
|
||||
* @param report
|
||||
*/
|
||||
public void displayCrashScreen(CrashReport report) {
|
||||
try {
|
||||
@@ -294,8 +290,8 @@ public abstract class MinecraftMixin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param report
|
||||
* @author Runemoro
|
||||
* @param report
|
||||
*/
|
||||
public void displayInitErrorScreen(CrashReport report) {
|
||||
if (shouldGenerateCrashLog()) {
|
||||
@@ -336,8 +332,8 @@ public abstract class MinecraftMixin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param screen
|
||||
* @author Runemoro
|
||||
* @param screen
|
||||
*/
|
||||
private void runGUILoop(GuiScreen screen) throws IOException {
|
||||
displayGuiScreen(screen);
|
||||
@@ -399,9 +395,9 @@ public abstract class MinecraftMixin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param report
|
||||
* @author Runemoro
|
||||
* @reason
|
||||
* @param report
|
||||
*/
|
||||
@Overwrite
|
||||
public void displayCrashReport(CrashReport report) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
package vfyjxf.bettercrashes.utils;
|
||||
|
||||
import java.awt.Desktop;
|
||||
import java.awt.*;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
@@ -25,8 +25,8 @@ import vfyjxf.bettercrashes.BetterCrashes;
|
||||
public class CrashUtils {
|
||||
|
||||
/**
|
||||
* @param report
|
||||
* @author Runemoro
|
||||
* @param report
|
||||
*/
|
||||
public static void outputReport(CrashReport report) {
|
||||
try {
|
||||
@@ -63,9 +63,9 @@ public class CrashUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* @author vfyjxf
|
||||
* @param crashReport
|
||||
* @throws IOException
|
||||
* @author vfyjxf
|
||||
*/
|
||||
public static void openCrashReport(CrashReport crashReport) throws IOException {
|
||||
|
||||
|
||||
@@ -12,12 +12,7 @@ import java.lang.reflect.Method;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||
@@ -103,7 +98,7 @@ public final class ModIdentifier {
|
||||
try {
|
||||
modMap.remove(Loader.instance().getMinecraftModContainer().getSource()); // Ignore minecraft jar (minecraft)
|
||||
modMap.remove(Loader.instance().getIndexedModList().get("FML").getSource()); // Ignore forge jar (FML,
|
||||
// forge)
|
||||
// forge)
|
||||
} catch (NullPointerException ignored) {
|
||||
// Workaround for https://github.com/MinecraftForge/MinecraftForge/issues/4919
|
||||
}
|
||||
|
||||
@@ -12,12 +12,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Collections;
|
||||
import java.util.Deque;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Scanner;
|
||||
import java.util.*;
|
||||
|
||||
import com.google.common.hash.Hasher;
|
||||
import com.google.common.hash.Hashing;
|
||||
@@ -33,7 +28,7 @@ public final class StacktraceDeobfuscator {
|
||||
private static final String MAPPING_METHODS_CSV_HASH = "63de115ead3e848e529de81e81ada9dff694e50fb5c6d92ec1e9037fe50ca191"; // sha256
|
||||
|
||||
private static final boolean DEBUG_IN_DEV = false; // Makes this MCP -> SRG for testing in dev. Don't forget to set
|
||||
// to false when done!
|
||||
// to false when done!
|
||||
private static HashMap<String, String> srgMcpMethodMap = null;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user