mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fixed capes rotating too far when sneaking
This commit is contained in:
parent
2f0ad4bf3e
commit
b6f4161e4b
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ import net.minecraft.client.util.math.MatrixStack;
|
|||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.equipment.EquipmentModel;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.RotationAxis;
|
||||
|
||||
public class CapeFeature extends CapeFeatureRenderer {
|
||||
|
@ -54,7 +55,7 @@ public class CapeFeature extends CapeFeatureRenderer {
|
|||
matrices.translate(0, 0.34F, 0);
|
||||
model.transform((PlayerPonyRenderState)player, BodyPart.BODY, matrices);
|
||||
model.body.rotate(matrices);
|
||||
matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(85));
|
||||
matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(85 - model.body.pitch * MathHelper.DEGREES_PER_RADIAN));
|
||||
if (player.baby) {
|
||||
matrices.scale(1.1F, 1.1F, 1.1F);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue