From 8cca01effca03ec4a9203d91598e50e4e171f454 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 7 Mar 2021 17:46:09 +0200 Subject: [PATCH] Remove deprecated api reference --- src/main/java/com/minelittlepony/client/MineLittlePony.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/client/MineLittlePony.java b/src/main/java/com/minelittlepony/client/MineLittlePony.java index 008aa22e..a8360af9 100644 --- a/src/main/java/com/minelittlepony/client/MineLittlePony.java +++ b/src/main/java/com/minelittlepony/client/MineLittlePony.java @@ -16,8 +16,8 @@ import com.minelittlepony.common.util.GamePaths; import com.minelittlepony.settings.PonyConfig; import net.fabricmc.api.ClientModInitializer; +import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; -import net.fabricmc.fabric.api.event.client.ClientTickCallback; import net.fabricmc.fabric.api.resource.ResourceManagerHelper; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.client.MinecraftClient; @@ -78,7 +78,7 @@ public class MineLittlePony implements ClientModInitializer { // general events ClientReadyCallback.Handler.register(); - ClientTickCallback.EVENT.register(this::onTick); + ClientTickEvents.END_CLIENT_TICK.register(this::onTick); ClientReadyCallback.EVENT.register(this::onClientReady); ScreenInitCallback.EVENT.register(this::onScreenInit); config.ponyskulls.onChanged(PonySkullRenderer::resolve);