Jukebox setPlaying API plays incorrect sound

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

      I filed a report on Jukeboxes not working properly and playing an incorrect "kerklunk" sound when putting a record in them, which was fixed. (SPIGOT-1568)

      I have now found out that using the Jukebox API to set the jukebox as playing also plays that incorrect sound and was not fixed from the standard jukebox fix.

      This code worked in all versions of MC 1.8

              if (block.getState() instanceof Jukebox)
              {
                  Jukebox jukebox = (Jukebox) block.getState();
                  if (!block.isBlockPowered() && jukebox.isPlaying())
                  {
                      jukebox.setPlaying(jukebox.getPlaying());
                  }
              }
      

            Assignee:
            Thinkofname
            Reporter:
            Dylan Xaldin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: