1.17 crash on adding items to custom inventory

Discussion in 'Spigot Plugin Help' started by angxlwtf, Jun 11, 2021.

  1. Hi! I recently upgraded my server to use Spigot 1.17, and i also upgraded my plugin.
    Everytime i run the command for my custom gui, it crashes and gives me the error
    Code (Text):
    Description: Ticking entity

    java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    It never gave me this error on 1.16.5, I am using the EXACT code from https://www.spigotmc.org/wiki/creating-a-gui-inventory/ with no modifications and creating a new inventory gui, and then opening it via the sender (casted to player)

    Thank you in advance!
     
  2. Rebuild spigot 1.17 with BuildTools.
     
  3. And the complete reported error is ?
     
  4. This worked, thanks
     
  5. 1.17 is way too new at this point. Make sure each time you test something that you are building with buildtools.jar first to get the latest build of 1.17 until it's ready to go on a live setup etc.