mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:41:31 +01:00
Update AnimatedResourceLocation.java
This commit is contained in:
parent
5ac9ff6ec9
commit
d2f6d9e298
@ -2,6 +2,7 @@ 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;
|
||||||
@ -66,12 +67,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.getTexture());
|
Minecraft.getMinecraft().getTextureManager().bindTexture(this.getTexture());
|
||||||
// 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user