Skip to content

Commit

Permalink
Set a sound category for Jinglenote - it now is classified as a Jukeb…
Browse files Browse the repository at this point in the history
…ox to the client for sound mixing.
  • Loading branch information
me4502 committed Mar 16, 2019
1 parent f9a6083 commit 8a70489
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@

import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.entity.Player;

import com.sk89q.craftbook.util.SearchArea;
Expand All @@ -23,7 +24,7 @@ public void play (Note note) {

if(!isPlaying()) return;

p.playSound(p.getLocation(), toSound(note.getInstrument()), note.getVelocity(), note.getNote());
p.playSound(p.getLocation(), toSound(note.getInstrument()), SoundCategory.RECORDS, note.getVelocity(), note.getNote());
}

@Override
Expand Down

0 comments on commit 8a70489

Please sign in to comment.