Skip to content

Commit

Permalink
fix: chimera size
Browse files Browse the repository at this point in the history
Closes #1157
  • Loading branch information
klikli-dev committed Jul 19, 2024
1 parent 048a00f commit 2dc807e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,18 @@ public ChimeraFamiliarRenderer(EntityRendererProvider.Context context) {
@Override
public void render(ChimeraFamiliarEntity pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) {
pMatrixStack.pushPose();
float size = pEntity.getScale();
pMatrixStack.scale(size, size, size);
if (pEntity.isSitting())
pMatrixStack.translate(0, -0.23, 0);
super.render(pEntity, pEntityYaw, pPartialTicks, pMatrixStack, pBuffer, pPackedLight);
pMatrixStack.popPose();
}

@Override
protected void scale(ChimeraFamiliarEntity livingEntity, PoseStack poseStack, float partialTickTime) {
float size = livingEntity.getScale() * 0.5f;
poseStack.scale(size, size, size);
}

@Override
public ResourceLocation getTextureLocation(ChimeraFamiliarEntity entity) {
return TEXTURES;
Expand Down

0 comments on commit 2dc807e

Please sign in to comment.