Write active backend to crash reports

This commit is contained in:
Jozufozu 2021-12-30 20:01:45 -08:00
parent d38e2421c9
commit 4c0df23702

View file

@ -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();