mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Revert "The result shouldn't be null, and if it is null you REALLY SHOULDN'T LOOP ON IT INDEFINITELY"
This reverts commit 5ab8126
This commit is contained in:
parent
e8217aa9c0
commit
d82af57b3c
1 changed files with 5 additions and 1 deletions
|
@ -295,8 +295,12 @@ public final class HDSkinManager implements IResourceManagerReloadListener {
|
|||
|
||||
public void parseSkin(GameProfile profile, Type type, ResourceLocation resource, MinecraftProfileTexture texture) {
|
||||
|
||||
// TODO: Infinite loop
|
||||
// The texture needs to be loaded in order to be parsed.
|
||||
Minecraft.getMinecraft().getTextureManager().getTexture(resource);
|
||||
ITextureObject ito = null;
|
||||
while (ito == null) {
|
||||
ito = Minecraft.getMinecraft().getTextureManager().getTexture(resource);
|
||||
}
|
||||
|
||||
// grab the metadata object via reflection. Object is live.
|
||||
Map<String, String> metadata = ProfileTextureUtil.getMetadata(texture);
|
||||
|
|
Loading…
Reference in a new issue