Files
MCCustomSkinLoader/Vanilla/source/customskinloader/mixin/MixinThreadDownloadImageDataV1.java
T
ZekerZhayard 3e001c4cdf 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
2021-05-07 17:15:45 +08:00

24 lines
710 B
Java

package customskinloader.mixin;
import java.awt.image.BufferedImage;
import customskinloader.fake.itf.IFakeThreadDownloadImageData;
import net.minecraft.client.renderer.ThreadDownloadImageData;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@Mixin(ThreadDownloadImageData.class) // This mixin is only for 1.12.2-
public abstract class MixinThreadDownloadImageDataV1 implements IFakeThreadDownloadImageData {
@Shadow
private BufferedImage bufferedImage;
@Shadow
private boolean textureUploaded;
@Override
public void resetNewBufferedImage(BufferedImage image) {
this.textureUploaded = false;
this.bufferedImage = image;
}
}