From e38611637afc2b3efbcbf2af98d52fa34637cc07 Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Tue, 20 Dec 2016 01:35:20 -0500 Subject: [PATCH] Fix forge issue by using a anonymous class for minecraft interfaces. --- .../java/com/voxelmodpack/hdskins/HDSkinManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java index c7c07640..da0869f2 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java @@ -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(); }