Skip to content

Commit

Permalink
Fix left-handed item rendering of IItemRenderer items.
Browse files Browse the repository at this point in the history
  • Loading branch information
covers1624 committed Sep 16, 2024
1 parent f7b963f commit 1ab804a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/codechicken/lib/model/PerspectiveModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ default BakedModel applyTransform(ItemDisplayContext context, PoseStack pStack,
pStack.scale(scale.x(), scale.y(), scale.z());

pStack.mulPose(transform.getRightRotation());

if (leftFlip) {
TransformUtils.applyLeftyFlip(pStack);
}
return this;
}
return BakedModel.super.applyTransform(context, pStack, leftFlip);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/codechicken/lib/util/TransformUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public static ModelState stateFromItemTransforms(ItemTransforms itemTransforms)
*
* @param pStack The {@link PoseStack} to apply to.
*/
@Deprecated (forRemoval = true)
public static void applyLeftyFlip(PoseStack pStack) {
if (!pStack.clear()) {
Matrix4f tMat = pStack.last().pose();
Expand Down

0 comments on commit 1ab804a

Please sign in to comment.