mojira.dev
MCPE-125311

Floor coral fan axis incorrect when placed while facing north/northwest/northeast

Floor coral fans in Bedrock can face east/west or north/south (this is a Bedrock-exclusive feature).

However, due to incorrect angle logic in coral placement logic, coral fans only take the east/west direction when facing south, southwest or southeast (sun on the left in the morning).

This is observable to the trained eye by placing coral fans in a row by facing north, east, south and west.

In the below image, you can see all except the bottom-right coral fan have the same orientation. The bottom-right one has an X axis; the others are all Z.
(Look very closely at the top-left of each fan; there are some pixel differences between bottom-right and the others.)

This problem was discovered while implementing coral fans in a third-party server. My observation is that the game doesn't handle negative results from atan2() correctly (this occurs when placing coral fan while facing north).

[media]

Attachments

Comments 1

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version? If so, please add a comment or update the affected version field.

To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

odigiman

(Unassigned)

824027

Confirmed

Multiple

1.16.220, 1.18.31

1.19.30.22 Preview, 1.19.30

Retrieved