Fix Spectator Menu totally

This commit is contained in:
Alexander Xia committed 2018-07-02 00:15:03 +08:00
1 parent fba9f7ca28
commit 6ffdf2aafb
2 files changed
+9 -3

No files matched your search

@@ -50,6 +50,8 @@ public class FakeSkinManager{
else{
ThreadDownloadImageData threaddownloadimagedata = new ThreadDownloadImageData(info.cacheFile, info.url, DefaultPlayerSkin.getDefaultSkinLegacy(),
new BaseBuffer(skinAvailableCallback, textureType, resourcelocation, profileTexture));
if(skinAvailableCallback instanceof FakeClientPlayer.LegacyBuffer)//Cache for client player
FakeClientPlayer.textureCache.put(resourcelocation,threaddownloadimagedata);
this.textureManager.loadTexture(resourcelocation, threaddownloadimagedata);
}
return resourcelocation;