Skip to content

Commit

Permalink
Fix block rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Apr 2, 2024
1 parent 0b03665 commit 08fdc8f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ private void onDefineCustomBlocks(PackEventContext<GeyserDefineCustomBlocksEvent

CustomBlockComponents.Builder componentsBuilder = CustomBlockComponents.builder()
.transformation(new TransformationComponent(
definition.variant().x(), // Rotation X
definition.variant().y(), // Rotation Y
0, // Rotation Z
1, // Scale X
1, // Scale Y
1, // Scale Z
0, // Translation X
0, // Translation Y
0 // Translation Z
(360 - definition.variant().x()) % 360, // Rotation X
(360 - definition.variant().y()) % 360, // Rotation Y
0, // Rotation Z
1, // Scale X
1, // Scale Y
1, // Scale Z
0, // Translation X
0, // Translation Y
0 // Translation Z
));

if (!isUnitCube(model.parent())) {
Expand Down

0 comments on commit 08fdc8f

Please sign in to comment.