mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-03-25 05:00:55 +01:00
20 lines
613 B
Java
20 lines
613 B
Java
package com.minelittlepony.client.hdskins;
|
|
|
|
import com.minelittlepony.client.SkinsProxy;
|
|
import com.minelittlepony.hdskins.HDSkins;
|
|
import com.mojang.authlib.GameProfile;
|
|
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
class HDSkinsProxy extends SkinsProxy {
|
|
|
|
@Override
|
|
public Identifier getSkinTexture(GameProfile profile) {
|
|
|
|
Identifier skin = HDSkins.getInstance().getTextures(profile).get(MinecraftProfileTexture.Type.SKIN);
|
|
if (skin != null) {
|
|
return skin;
|
|
}
|
|
return super.getSkinTexture(profile);
|
|
}
|
|
}
|