Mojira Archive
MC-229293

Casting issue: Broken blocks drop items in the wrong position at high distances

This problem becomes visible over 8,388,608 blocks, where items start dropping at the edges or corners of a block instead of at the center, and after 16,777,216 the position can be offset by as much as 2 blocks. The cause is most likely the block position being cast to float instead of double in the code that determines where tile drops are spawned.

Fixed

Connor Steppie

phigraz

[Mojang] Panda

2021-06-16, 11:06 PM

2023-02-27, 11:56 AM

2023-02-27, 11:56 AM

15

7

Confirmed

Important

Items

precision-loss

1.17 - 23w07a1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1 Release Candidate 2, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18, 1.18.1 Release Candidate 1, 1.18.1 Release Candidate 2, 1.18.1, 1.18.2, 22w17a, 1.19 Pre-release 5, 1.19, 1.19.1 Pre-release 4, 1.19.2, 23w07a

1.19.4 Pre-release 2