mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-28 16:06:28 +01:00
Write active backend to crash reports
This commit is contained in:
parent
d38e2421c9
commit
4c0df23702
1 changed files with 4 additions and 0 deletions
|
@ -9,12 +9,16 @@ import com.jozufozu.flywheel.mixin.PausedPartialTickAccessor;
|
||||||
import com.jozufozu.flywheel.vanilla.VanillaInstances;
|
import com.jozufozu.flywheel.vanilla.VanillaInstances;
|
||||||
|
|
||||||
import net.minecraftforge.eventbus.api.IEventBus;
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
import net.minecraftforge.fml.CrashReportCallables;
|
||||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
|
|
||||||
public class FlywheelClient {
|
public class FlywheelClient {
|
||||||
|
|
||||||
public static void clientInit() {
|
public static void clientInit() {
|
||||||
|
|
||||||
|
CrashReportCallables.registerCrashCallable("Flywheel Backend", () ->
|
||||||
|
Backend.getInstance().getBackendDescriptor());
|
||||||
|
|
||||||
Backend.init();
|
Backend.init();
|
||||||
IEventBus modEventBus = FMLJavaModLoadingContext.get()
|
IEventBus modEventBus = FMLJavaModLoadingContext.get()
|
||||||
.getModEventBus();
|
.getModEventBus();
|
||||||
|
|
Loading…
Reference in a new issue