mojira.dev
MC-194573

Z coordinate and "targeted block" are not same

Attached photo shows me standing on Z: -51 but when targeting the block directly below me the "targeted block shows -52. (second photo shows vanilla cords as -49 and -50 respectively)

Edit: First I thought it might be an optifine bug, but I checked vanilla, and aside from the coords being completely different, the cords still do not line up.

Attachments

Comments 2

There's no bug here. If your exact coordinate is something like -51.3, then the block coordinate becomes -52, because of how integer casting works with negatives.

Block coordinates are integers, player coordinates are floating point numbers.

Dalton

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1

Retrieved