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) + } }