Skip to content
Browse files

Set a sound category for Jinglenote - it now is classified as a Jukeb…

…ox to the client for sound mixing.
  • Loading branch information...
me4502 committed Mar 16, 2019
1 parent f9a6083 commit 8a704893f6d79b745970c6efc98e2398ded09434
@@ -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;
@@ -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());


0 comments on commit 8a70489

Please sign in to comment.
You can’t perform that action at this time.