Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 23, 2024
1 parent b64cfa0 commit abad081
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit abad081

Please sign in to comment.