Fix forge issue by using a anonymous class for minecraft interfaces.

This commit is contained in:
Matthew Messinger 2016-12-20 01:35:20 -05:00
parent 33390c66d4
commit e38611637a

View file

@ -101,7 +101,13 @@ public final class HDSkinManager implements IResourceManagerReloadListener {
if (skin == null) {
if (loadIfAbsent) {
skinCache.get(profile.getId()).put(type, LOADING);
executor.submit(() -> loadTexture(profile, type, (type1, location, profileTexture) -> skinCache.get(profile.getId()).put(type1, location)));
//noinspection Convert2Lambda
executor.submit(() -> loadTexture(profile, type, new SkinAvailableCallback() {
@Override
public void skinAvailable(Type type1, ResourceLocation location, MinecraftProfileTexture profileTexture) {
skinCache.get(profile.getId()).put(type1, location);
}
}));
}
return Optional.empty();
}