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

Null Exception when trying to run Jukebox.setRecord

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 3692-Spigot-6ad4b93-40b87e1 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Jukebox Extended Reborn
    • Yes

      When trying to run on a Jukebox Block state the setRecord method an null exception is thrown.

       

       

      val jukebox = location.block.state as Jukebox
      
      // both methods throw the same error
      jukebox.setPlaying(Material.MUSIC_DISC_11)
      jukebox.setRecord(ItemStack(Material.MUSIC_DISC_11)) 

       

       

      Here's the stacktrace: stacktrace

            Unassigned Unassigned
            spartacus04 Andrea Bonari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: