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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Items
    • Mojang Priority:
      Normal

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              phigraz phigraz
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: