Null Exception when trying to run Jukebox.setRecord

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:
    • 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

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

              Created:
              Updated:
              Resolved: