Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6360

player.openInventory causes invalid state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 2991-Spigot-018b9a0-f3f3094 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
    • Yes

      player.openInventory(player.getInventory());

      This code causes player to open inventory with 41 slots (not divisible by 9) thus creating invalid state in bottom inventory of InventoryView. I've created a simple plugin to trigger that - jar and source code in attachments. Try spreading or placing items and you should see them jump around, disappear or be placed in inaccessible part of player inventory (offhand/armor).

            Unassigned Unassigned
            idowatchnetflix Philipp B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: