forked from Clones/Controlify
minor improvements to carousel
This commit is contained in:
@ -5,6 +5,7 @@ import dev.isxander.controlify.Controlify;
|
||||
import dev.isxander.controlify.ControllerManager;
|
||||
import dev.isxander.controlify.controller.Controller;
|
||||
import dev.isxander.controlify.gui.screen.BetaNoticeScreen;
|
||||
import dev.isxander.controlify.utils.Animator;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.components.toasts.ToastComponent;
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
@ -57,4 +58,9 @@ public abstract class MinecraftMixin {
|
||||
private void onMinecraftClose(CallbackInfo ci) {
|
||||
ControllerManager.getConnectedControllers().forEach(Controller::close);
|
||||
}
|
||||
|
||||
@Inject(method = "runTick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/GameRenderer;render(FJZ)V"))
|
||||
private void tickAnimator(boolean tick, CallbackInfo ci) {
|
||||
Animator.INSTANCE.progress(this.getDeltaFrameTime());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user