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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: