From 4c0df23702a6720d11c911542df70e4d5bf794cd Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Thu, 30 Dec 2021 20:01:45 -0800 Subject: [PATCH] Write active backend to crash reports --- src/main/java/com/jozufozu/flywheel/FlywheelClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/jozufozu/flywheel/FlywheelClient.java b/src/main/java/com/jozufozu/flywheel/FlywheelClient.java index 3ec94f352..3d7f7adb5 100644 --- a/src/main/java/com/jozufozu/flywheel/FlywheelClient.java +++ b/src/main/java/com/jozufozu/flywheel/FlywheelClient.java @@ -9,12 +9,16 @@ import com.jozufozu.flywheel.mixin.PausedPartialTickAccessor; import com.jozufozu.flywheel.vanilla.VanillaInstances; import net.minecraftforge.eventbus.api.IEventBus; +import net.minecraftforge.fml.CrashReportCallables; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; public class FlywheelClient { public static void clientInit() { + CrashReportCallables.registerCrashCallable("Flywheel Backend", () -> + Backend.getInstance().getBackendDescriptor()); + Backend.init(); IEventBus modEventBus = FMLJavaModLoadingContext.get() .getModEventBus();