From d917a87a2eb58ff4432d1be0bafa1626987004d2 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 23 Oct 2024 10:34:59 -0400 Subject: [PATCH] add debug logging --- .../dev/engine_room/flywheel/FlywheelTestModClient.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java b/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java index f1992d60d..302330f9c 100644 --- a/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java +++ b/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java @@ -13,12 +13,17 @@ public class FlywheelTestModClient { private int ticks = 0; public FlywheelTestModClient() { + log("Loading test mod") + if (Boolean.getBoolean("flywheel.autoTest")) { + log("running autotest") + IEventBus modEventBus = FMLJavaModLoadingContext.get() .getModEventBus(); modEventBus.addListener((TickEvent.ClientTickEvent e) -> { if (e.phase == TickEvent.Phase.END) { + log("current ticks" + ticks) if (++ticks == 50) { MixinEnvironment.getCurrentEnvironment().audit(); Minecraft.getInstance().stop(); @@ -27,4 +32,8 @@ public FlywheelTestModClient() { }); } } + + public static void log(String s) { + System.out.println("[Flywheel Test Mod] " + s) + } }