if (player instanceof EntityClientPlayerMP) {
if (waitingSound == null) {
Music music = Music.getMusicFromName(var1.soundName);
if (music != null) {
waitingSound = var1;
SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketMusicChange(music.getId(), (int)options.musicVolume * 100));
return;
}
} else if (allowed) {
var1 = waitingSound;
waitingSound = null;