mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fixed crash when trying to render capes whilst Entity Model Features is installed
This commit is contained in:
parent
471b2f01a0
commit
7f9bdcbde5
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class CapeFeature<M extends ClientPonyModel<AbstractClientPlayerEntity>>
|
|||
|
||||
@Override
|
||||
public void render(MatrixStack stack, VertexConsumerProvider renderContext, int lightUv, AbstractClientPlayerEntity player, float limbDistance, float limbAngle, float tickDelta, float age, float headYaw, float headPitch) {
|
||||
M model = getContextModel();
|
||||
M model = getModelWrapper().body();
|
||||
|
||||
if (player.hasSkinTexture() && !player.isInvisible()
|
||||
&& player.isPartVisible(PlayerModelPart.CAPE) && player.getCapeTexture() != null
|
||||
|
|
Loading…
Reference in a new issue