Jukebox.setRecord(null) is not emptying the the jukebox

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      OS: Windows and Linux

      Java version: java version "17.0.1" 2021-10-19 LTS
      Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
      Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

    •  This server is running CraftBukkit version 3697-Spigot-6ad4b93-9381350 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Yes

      When trying to run this block of code

      val jukebox = location.block.state as Jukebox
      
      jukebox.setRecord(null)
      jukebox.update(true) 

      The jukebox is not emptied

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

              Created:
              Updated:
              Resolved: