mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
HDSkins has player data loaded when fetching a pony.
This commit is contained in:
parent
44e38c0329
commit
d338a4ddb6
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ import com.google.gson.JsonParseException;
|
||||||
import com.minelittlepony.model.PMAPI;
|
import com.minelittlepony.model.PMAPI;
|
||||||
import com.minelittlepony.pony.data.Pony;
|
import com.minelittlepony.pony.data.Pony;
|
||||||
import com.minelittlepony.pony.data.PonyLevel;
|
import com.minelittlepony.pony.data.PonyLevel;
|
||||||
|
import com.voxelmodpack.hdskins.HDSkinManager;
|
||||||
import com.voxelmodpack.hdskins.ISkinCacheClearListener;
|
import com.voxelmodpack.hdskins.ISkinCacheClearListener;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
|
@ -83,6 +84,9 @@ public class PonyManager implements IResourceManagerReloadListener, ISkinCacheCl
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pony getPony(NetworkPlayerInfo playerInfo) {
|
public Pony getPony(NetworkPlayerInfo playerInfo) {
|
||||||
|
// force load HDSkins if they're not available
|
||||||
|
HDSkinManager.INSTANCE.getProfileData(playerInfo.getGameProfile());
|
||||||
|
|
||||||
ResourceLocation skin = playerInfo.getLocationSkin();
|
ResourceLocation skin = playerInfo.getLocationSkin();
|
||||||
UUID uuid = playerInfo.getGameProfile().getId();
|
UUID uuid = playerInfo.getGameProfile().getId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue