From abad081e38fe5720946d2d23a401d98d2ca032d1 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 23 Oct 2024 11:38:13 -0400 Subject: [PATCH] more logging --- .../java/dev/engine_room/flywheel/FlywheelTestModClient.java | 4 +++- .../java/dev/engine_room/flywheel/FlywheelTestModClient.java | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fabric/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java b/fabric/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java index 9d833d9ec..71e4370e4 100644 --- a/fabric/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java +++ b/fabric/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java @@ -1,5 +1,7 @@ package dev.engine_room.flywheel; +import net.fabricmc.loader.api.FabricLoader; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongepowered.asm.mixin.MixinEnvironment; @@ -14,7 +16,7 @@ public class FlywheelTestModClient implements ClientModInitializer { @Override public void onInitializeClient() { - LOGGER.info("Starting Test Mod"); + LOGGER.info("Starting Test Mod, on Env: {}", FabricLoader.getInstance().getEnvironmentType()); ClientTickEvents.END_CLIENT_TICK.register(client -> { LOGGER.info("Tick Count: {}", ticks); 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 96b8c8b76..35edb4882 100644 --- a/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java +++ b/forge/src/testMod/java/dev/engine_room/flywheel/FlywheelTestModClient.java @@ -2,6 +2,8 @@ import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.loading.FMLLoader; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spongepowered.asm.mixin.MixinEnvironment; @@ -19,6 +21,8 @@ public class FlywheelTestModClient { private int ticks = 0; public FlywheelTestModClient() { + LOGGER.info("Starting Test Mod, on Dist: {}", FMLLoader.getDist()); + MinecraftForge.EVENT_BUS.addListener((TickEvent.ClientTickEvent e) -> { if (e.phase == TickEvent.Phase.END) { LOGGER.info("Tick Count: {}", ticks);