Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-229293

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.4 Pre-release 2
    • 1.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
    • Confirmed
    • Items
    • Important

      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.

            panda4994 [Mojang] Panda
            Awesoman3000 Connor Steppie
            Votes:
            15 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: