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

java.lang.IllegalArgumentException - Adding to Bundle from Cursor when Bundle has more than 64 items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Windows 10. Java JDK 17.01. Up to date Spigot 1.19.2 server running locally. Client is a Fabric 1.19.2.

    • CraftBukkit version 3599-Spigot-4aa5ead-aaf484f (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT)
    • Spigot
    • Yes

      When attempting to add an Itemstack from the Cursor to a Bundle with more than 64 items inside, the Player is kicked with a 

      Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: item is null or air 

      and the server creates a long list of netty io exceptions, related to CraftMetaBundle.

      When instead having the Bundle on the Cursor and attempting to add an Itemstack by rightclicking on a slot, the action is simply denied without error.

       

      This same sequence of events is also bugged in Vanilla, but instead of throwing an exception it adds an empty ItemStack of AIR to the bundle with every attempt.

      [link Link|[MC-256599] Bundle adds AIR as a stack when attempting to add to a bundle with more than 64 items inside - Jira (mojang.com)]

      (Confirmed on the Mojang bug tracker)

        1. cmd_2fFGC0Uix3.mp4
          9.18 MB
        2. exception.txt
          13 kB
        3. javaw_Mw0ix1VFjV.png
          javaw_Mw0ix1VFjV.png
          81 kB

            Doc Doc
            Eclipsebre EclipseBre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: