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

Cancelled block place (spawn protection) causes inventory desync

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Minecraft 1.9, Minecraft 1.10.2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.15 Pre-Release 2, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w51a, 1.16.5, 21w18a, 21w20a, 1.17.1
    • None
    • Confirmed
    • Networking
    • Important

    Description

      The bug

      Enable spawn protection. Attempt to place a block. The block will not place, however it will be removed from your inventory. Relog, or click the empty slot and it will reappear.

      With recent (1.15 snapshots) changes moving item usage to the client-side as well to get correct arm movement, this affects even more items, e.g. fire charges used to ignite camp fires.

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              md_5 [Mod] md_5
              Votes:
              13 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: