Merge pull request #55 from Silent-Client/TEST2

Test2
This commit is contained in:
kirillsaint 2023-10-09 15:12:22 +06:00 committed by GitHub
commit a085d51fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

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.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) {

View File

@ -136,7 +136,7 @@ public class LiteAccountPicker extends AccountPicker {
(new Thread("McAvatarThread") { (new Thread("McAvatarThread") {
public void run() { public void run() {
Client.logger.info(String.format("Downloading avatar %s...", username)); Client.logger.info(String.format("Downloading avatar %s...", username));
BufferedImage avatar = SCTextureManager.getImage(String.format("https://mc-heads.net/avatar/%s/100.png", username)); BufferedImage avatar = SCTextureManager.getImage(String.format("https://cache.silentclient.net/avatar/%s.png", username));
if(avatar != null) { if(avatar != null) {
Client.logger.info(String.format("Avatar %s successfully downloaded!", username)); Client.logger.info(String.format("Avatar %s successfully downloaded!", username));
image = avatar; image = avatar;

View File

@ -179,7 +179,7 @@ public class MainMenuConcept extends SilentScreen {
loading = true; loading = true;
(new Thread("SkinThread") { (new Thread("SkinThread") {
public void run() { public void run() {
BufferedImage skin = SCTextureManager.getImage(String.format("https://mc-heads.net/body/%s/left/1000.png", Client.getInstance().getAccount().getUsername())); BufferedImage skin = SCTextureManager.getImage(String.format("https://cache.silentclient.net/body/%s/left/1000.png", Client.getInstance().getAccount().getUsername()));
if(skin != null) { if(skin != null) {
MainMenuConcept.image = skin; MainMenuConcept.image = skin;
} else { } else {