mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 15:37:59 +01:00
Use the textureloader for this instead
This commit is contained in:
parent
c1676bf778
commit
05bd9b0ac3
1 changed files with 1 additions and 7 deletions
|
@ -6,7 +6,6 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
|||
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||
import com.voxelmodpack.hdskins.skins.CallableFutures;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.IImageBuffer;
|
||||
import net.minecraft.client.resources.SkinManager.SkinAvailableCallback;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
@ -56,12 +55,7 @@ public class PreviewTextureManager {
|
|||
|
||||
PreviewTexture skinTexture = new PreviewTexture(texture, def, buffer);
|
||||
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
mc.addScheduledTask(() -> {
|
||||
mc.getTextureManager().loadTexture(location, skinTexture);
|
||||
});
|
||||
|
||||
TextureLoader.loadTexture(location, skinTexture);
|
||||
|
||||
return skinTexture;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue