After an operation is performed on the CHISELED_BOOKSHELF's Inventory, the state will not be fully updated.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • This server is running CraftBukkit version 4587-Spigot-da5d877-9167fe9 (MC: 1.21.11 Unobfuscated) (Implementing API version 1.21.11-R0.2-SNAPSHOT)
    • Yes

      The last normally working version was 1.21.8. Both versions 1.21.10 and 1.21.11 fail to work properly.

      Issue: After performing operations on the ChiseledBookshelfInventory(e.g., inventory.clear(), inventory.setItem(0, null)), the client does not update its state. It appears as if the items have not been cleared, but players cannot take them out. Using the vanilla /data get block command confirms the bookshelf is empty server-side. However, this issue persists even if the player reconnects to the server or if the server is restarted.

      Workaround: Placing a new book into the CHISELED_BOOKSHELFcauses it to update to the correct state.

      ChiseledBookshelf bookshelf = (ChiseledBookshelf) block.getState();
      ChiseledBookshelfInventory inventory = bookshelf.getInventory();
      
      inventory.clear(); 

            Assignee:
            Unassigned
            Reporter:
            Bing_Yanchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: