From 1c6e1965e49511f4dc64c5f086babb891d6ffbd3 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Mon, 9 Oct 2023 10:58:37 +0600 Subject: [PATCH] Update AnimatedResourceLocation.java --- .../client/cosmetics/AnimatedResourceLocation.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/silentclient/client/cosmetics/AnimatedResourceLocation.java b/src/main/java/net/silentclient/client/cosmetics/AnimatedResourceLocation.java index 7ce528a..a820988 100644 --- a/src/main/java/net/silentclient/client/cosmetics/AnimatedResourceLocation.java +++ b/src/main/java/net/silentclient/client/cosmetics/AnimatedResourceLocation.java @@ -2,7 +2,6 @@ package net.silentclient.client.cosmetics; import net.minecraft.client.Minecraft; import net.minecraft.util.ResourceLocation; -import net.silentclient.client.mixin.ducks.TextureManagerExt; import net.silentclient.client.utils.TimerUtils; import java.util.ArrayList; @@ -67,12 +66,12 @@ public class AnimatedResourceLocation { } public void bindTexture() { - if(currentFrame == 0) { - binding = false; +// if(currentFrame == 0) { +// binding = false; Minecraft.getMinecraft().getTextureManager().bindTexture(this.getTextures()[0]); - return; - } - binding = ((TextureManagerExt) Minecraft.getMinecraft().getTextureManager()).waitBindTexture(new StaticResourceLocation(this.getTexture().getResourcePath()), new StaticResourceLocation(this.getTextures()[0].getResourcePath()), 1000); +// return; +// } +// binding = ((TextureManagerExt) Minecraft.getMinecraft().getTextureManager()).waitBindTexture(new StaticResourceLocation(this.getTexture().getResourcePath()), new StaticResourceLocation(this.getTextures()[0].getResourcePath()), 1000); } public void setCurrentFrame(int currentFrame) {