Skip to content

Commit

Permalink
disable debug arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixces committed Jul 28, 2024
1 parent bc2110b commit b183b45
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,16 @@ public abstract class BipedEntityModelMixin<T extends LivingEntity>
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<Integer> 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<Integer> original)
// {
// return 2;
// }

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b183b45

Please sign in to comment.