mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fix forge issue by using a anonymous class for minecraft interfaces.
This commit is contained in:
parent
33390c66d4
commit
e38611637a
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue