Fixed noteblock related issues.
This commit is contained in:
parent
f08ff511c8
commit
f700e5ad15
|
@ -4,6 +4,7 @@ import net.minecraft.client.Minecraft;
|
|||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.client.audio.SoundCategory;
|
||||
import net.minecraft.client.audio.SoundEventAccessor;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.event.sound.PlaySoundEvent17;
|
||||
|
||||
|
@ -54,10 +55,10 @@ public class AetherMusicHandler {
|
|||
return;
|
||||
}
|
||||
}
|
||||
} else if (category == SoundCategory.RECORDS) {
|
||||
} else if (category == SoundCategory.RECORDS && !(event.name.contains("note"))) {
|
||||
this.musicTicker.stopMusic();
|
||||
this.mc.getSoundHandler().stopSounds();
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue