Skip to content

Commit

Permalink
Fix cape preview not working with WaveyCapes installed (related to #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaelTheColher committed Dec 14, 2022
1 parent 9dd229c commit acaa12d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import net.minecraft.util.math.MathHelper
import net.minecraft.util.math.RotationAxis


class DisplayPlayerEntityRenderer(ctx: EntityRendererFactory.Context, slim: Boolean) :
class DisplayPlayerEntityRenderer(val ctx: EntityRendererFactory.Context, slim: Boolean) :
LivingEntityRenderer<LivingEntity, PlayerEntityModel<LivingEntity>> (
ctx,
PlayerEntityModel<LivingEntity>(
Expand Down Expand Up @@ -67,7 +67,8 @@ class DisplayPlayerEntityRenderer(ctx: EntityRendererFactory.Context, slim: Bool
matrixStack.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180.0f))

val vertexConsumer = vertexConsumerProvider.getBuffer(RenderLayer.getArmorCutoutNoCull(PlaceholderEntity.getCapeTexture()))
model.renderCape(matrixStack, vertexConsumer, light, OverlayTexture.DEFAULT_UV)
ctx.getPart(EntityModelLayers.PLAYER).getChild("cloak")
.render(matrixStack, vertexConsumer, light, OverlayTexture.DEFAULT_UV)
matrixStack.pop()
} else {
val identifier = PlaceholderEntity.getElytraTexture()
Expand Down

0 comments on commit acaa12d

Please sign in to comment.