Skip to content

Commit 9d9d603

Browse files
committed
fix build
1 parent 8b3a5af commit 9d9d603

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

src/main/java/traben/entity_model_features/models/EMFModelMappings.java

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,9 +1465,27 @@ private static int[] initPartPrinterAndCaptureTextureSizeIfNeeded(PartAndOffsets
14651465
var z = partAndOffsets.z -vanillaModelPart.z;
14661466
if (x != 0 || y != 0 || z != 0) addArrayProperty(partPrinter,"translate", x, y, z);
14671467

1468-
float rx = partAndOffsets.part.getInitialPose().xRot() * -Mth.RAD_TO_DEG;
1469-
float ry = partAndOffsets.part.getInitialPose().yRot() * -Mth.RAD_TO_DEG;
1470-
float rz = partAndOffsets.part.getInitialPose().zRot() * Mth.RAD_TO_DEG;
1468+
float rx = partAndOffsets.part.getInitialPose()
1469+
//#if MC>=12102
1470+
.xRot()
1471+
//#else
1472+
//$$ .xRot
1473+
//#endif
1474+
* -Mth.RAD_TO_DEG;
1475+
float ry = partAndOffsets.part.getInitialPose()
1476+
//#if MC>=12102
1477+
.yRot()
1478+
//#else
1479+
//$$ .yRot
1480+
//#endif
1481+
* -Mth.RAD_TO_DEG;
1482+
float rz = partAndOffsets.part.getInitialPose()
1483+
//#if MC>=12102
1484+
.zRot()
1485+
//#else
1486+
//$$ .zRot
1487+
//#endif
1488+
* Mth.RAD_TO_DEG;
14711489
if (rx != 0 || ry != 0 || rz != 0) addArrayProperty(partPrinter,"rotate", rx, ry, rz);
14721490

14731491
if (vanillaModelPart.xScale != 1f) partPrinter.addProperty("scale", vanillaModelPart.xScale);

0 commit comments

Comments
 (0)