Update AnimatedResourceLocation.java

This commit is contained in:
kirillsaint 2023-10-09 10:58:37 +06:00
parent 1b0780f0f7
commit 1c6e1965e4

View File

@ -2,7 +2,6 @@ package net.silentclient.client.cosmetics;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.silentclient.client.mixin.ducks.TextureManagerExt;
import net.silentclient.client.utils.TimerUtils; import net.silentclient.client.utils.TimerUtils;
import java.util.ArrayList; import java.util.ArrayList;
@ -67,12 +66,12 @@ public class AnimatedResourceLocation {
} }
public void bindTexture() { public void bindTexture() {
if(currentFrame == 0) { // if(currentFrame == 0) {
binding = false; // binding = false;
Minecraft.getMinecraft().getTextureManager().bindTexture(this.getTextures()[0]); Minecraft.getMinecraft().getTextureManager().bindTexture(this.getTextures()[0]);
return; // return;
} // }
binding = ((TextureManagerExt) Minecraft.getMinecraft().getTextureManager()).waitBindTexture(new StaticResourceLocation(this.getTexture().getResourcePath()), new StaticResourceLocation(this.getTextures()[0].getResourcePath()), 1000); // binding = ((TextureManagerExt) Minecraft.getMinecraft().getTextureManager()).waitBindTexture(new StaticResourceLocation(this.getTexture().getResourcePath()), new StaticResourceLocation(this.getTextures()[0].getResourcePath()), 1000);
} }
public void setCurrentFrame(int currentFrame) { public void setCurrentFrame(int currentFrame) {