Write active backend to crash reports

This commit is contained in:
Jozufozu 2021-12-30 20:01:45 -08:00
parent 79952fdc42
commit e9a4231d4e

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