Fix optifine

This commit is contained in:
Matthew Messinger 2015-12-14 05:42:18 -05:00
parent e8021bc2fd
commit f56cea3597

View file

@ -46,6 +46,8 @@ public final class HDSkinManager {
if (imageDownload != null) { if (imageDownload != null) {
String imageUrl = PrivateFields.imageUrl.get(imageDownload); String imageUrl = PrivateFields.imageUrl.get(imageDownload);
if (imageUrl != null) { if (imageUrl != null) {
if (imageUrl.contains("optifine.net"))
return; // ignore optifine capes
String hash = FilenameUtils.getBaseName(imageUrl); String hash = FilenameUtils.getBaseName(imageUrl);
String uuid = resolvePlayerIdFromHash(hash); String uuid = resolvePlayerIdFromHash(hash);
if (uuid == null) { if (uuid == null) {