mojira.dev
MC-261224

Editing sign from an angle (or the side) will edit the back instead of the front

Editing a sign should check the angle you're looking at it and if it's closer to the front it should edit the front, while closer to the back should edit the back. Currently this does not work.

 

See screenshot, current facing the front, but editing the back
Code Analysis found here by @unknown

Attachments

Comments 2

Based on code analysis by @unknown, it appears as though the current code to check which side of the sign the player is facing assumes that all signs are centered in the block, which is not the case for wall signs. Therefore, if the player walks against the wall on which a wall sign is placed, they can edit the back side since they are now over the center of the block.

[media]

and it is unnecessary to use atan2 here.

mojang could use inner product of the 2 vectors > 0 or < 0 to solve that swiftly.

AgentM

elvendorke

Confirmed

Expansion A

Important

Input

23w12a

23w13a

Retrieved