diff --git a/src/main/java/com/mixces/legacyanimations/mixin/BipedEntityModelMixin.java b/src/main/java/com/mixces/legacyanimations/mixin/BipedEntityModelMixin.java index b7b29bb..fa1065f 100644 --- a/src/main/java/com/mixces/legacyanimations/mixin/BipedEntityModelMixin.java +++ b/src/main/java/com/mixces/legacyanimations/mixin/BipedEntityModelMixin.java @@ -332,16 +332,16 @@ public abstract class BipedEntityModelMixin arm.yaw = (rightArm ? -1.0f : 1.0f) * (float) (-Math.PI / 6); } - @WrapOperation( - method = "positionRightArm", - at = @At( - value = "INVOKE", - target = "Lnet/minecraft/client/render/entity/model/BipedEntityModel$ArmPose;ordinal()I" - ) - ) - private int shit(BipedEntityModel.ArmPose instance, Operation original) - { - return 2; - } +// @WrapOperation( +// method = "positionRightArm", +// at = @At( +// value = "INVOKE", +// target = "Lnet/minecraft/client/render/entity/model/BipedEntityModel$ArmPose;ordinal()I" +// ) +// ) +// private int shit(BipedEntityModel.ArmPose instance, Operation original) +// { +// return 2; +// } } \ No newline at end of file diff --git a/src/main/java/com/mixces/legacyanimations/mixin/HeldItemFeatureRendererMixin.java b/src/main/java/com/mixces/legacyanimations/mixin/HeldItemFeatureRendererMixin.java index 09e2ec3..9a32078 100644 --- a/src/main/java/com/mixces/legacyanimations/mixin/HeldItemFeatureRendererMixin.java +++ b/src/main/java/com/mixces/legacyanimations/mixin/HeldItemFeatureRendererMixin.java @@ -30,15 +30,15 @@ public class HeldItemFeatureRendererMixin { ) private void legacyAnimations$swordBlockTransform(LivingEntity entity, ItemStack stack, ModelTransformationMode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, CallbackInfo ci) { -// if (LegacyAnimationsSettings.getInstance().oldSwordBlock && entity.isBlocking() && -// ItemUtils.INSTANCE.isShieldInOffHand(entity.getOffHandStack()) && -// ItemUtils.INSTANCE.isSwordInMainHand(entity.getMainHandStack())) -// { + if (LegacyAnimationsSettings.getInstance().oldSwordBlock && entity.isBlocking() && + ItemUtils.INSTANCE.isShieldInOffHand(entity.getOffHandStack()) && + ItemUtils.INSTANCE.isSwordInMainHand(entity.getMainHandStack())) + { final MatrixUtil matrix = new MatrixUtil(matrices); matrices.translate(TransformHook.translationX, TransformHook.translationY, TransformHook.translationZ); matrix.yaw(TransformHook.rotationX).pitch(TransformHook.rotationY).roll(TransformHook.rotationZ); -// } + } // x: -0.2 y: 0.0 z: 0.1 yaw: 21.0 pitch: 90.0 roll: -90.0 }