Fix elytra can not be rendered when the cape doesn't contain elytra. (#160)

* Fix elytra can not be rendered when the cape doesn't contain elytra.

* Fix typo.

* Streamline IFakeThreadDownloadImageData.

* Fix wrong arguments.

* Add compatible with other custom player model mods, such as tr7zw/FirstPersonModel
This commit is contained in:
ZekerZhayard authored and GitHub committed 2021-05-07 17:15:45 +08:00
1 parent d5dea652ff
commit 3e001c4cdf
30 files changed
+381 -21

No files matched your search

@@ -84,7 +84,7 @@ public class FakeThreadDownloadImageData {
V4(() -> new IThreadDownloadImageDataBuilder() { // Forge 1.15.x~1.16.x
@Override
public SimpleTexture build(File cacheFile, String imageUrl, ResourceLocation textureResourceLocation, IImageBuffer imageBuffer, MinecraftProfileTexture.Type textureType) {
return new DownloadingTexture(cacheFile, imageUrl, textureResourceLocation, textureType == MinecraftProfileTexture.Type.SKIN, imageBuffer);
return new DownloadingTexture(cacheFile, imageUrl, textureResourceLocation, true, imageBuffer);
}
});