From 1ab804a294ad95f9937dbd4d7ab69d795938a56e Mon Sep 17 00:00:00 2001 From: covers1624 Date: Mon, 16 Sep 2024 22:16:42 +0930 Subject: [PATCH] Fix left-handed item rendering of IItemRenderer items. --- src/main/java/codechicken/lib/model/PerspectiveModel.java | 4 ---- src/main/java/codechicken/lib/util/TransformUtils.java | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/codechicken/lib/model/PerspectiveModel.java b/src/main/java/codechicken/lib/model/PerspectiveModel.java index 8cf07cf9..993f08b0 100644 --- a/src/main/java/codechicken/lib/model/PerspectiveModel.java +++ b/src/main/java/codechicken/lib/model/PerspectiveModel.java @@ -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); diff --git a/src/main/java/codechicken/lib/util/TransformUtils.java b/src/main/java/codechicken/lib/util/TransformUtils.java index 2fe126d3..2fc32062 100644 --- a/src/main/java/codechicken/lib/util/TransformUtils.java +++ b/src/main/java/codechicken/lib/util/TransformUtils.java @@ -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();