#158 - Music now plays in the aether
This commit is contained in:
parent
339f01b1b0
commit
d082aca623
2 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,7 @@ public class AetherMusicHandler
|
|||
|
||||
if (category == SoundCategory.MUSIC)
|
||||
{
|
||||
if (this.musicTicker.playingMusic())
|
||||
if (!sound.getSoundLocation().toString().contains("aether_legacy") && this.musicTicker.playingMusic())
|
||||
{
|
||||
event.setResultSound(null);
|
||||
|
||||
|
@ -56,6 +56,7 @@ public class AetherMusicHandler
|
|||
}
|
||||
else if (category == SoundCategory.RECORDS)
|
||||
{
|
||||
this.musicTicker.stopMusic();
|
||||
this.mc.getSoundHandler().stopSounds();
|
||||
|
||||
return;
|
||||
|
|
|
@ -17,6 +17,7 @@ import com.legacy.aether.common.registry.sounds.SoundsAether;
|
|||
@SideOnly(Side.CLIENT)
|
||||
public class AetherMusicTicker implements ITickable
|
||||
{
|
||||
|
||||
private final Random rand = new Random();
|
||||
private final Minecraft mc;
|
||||
private ISound currentMusic;
|
||||
|
|
Loading…
Reference in a new issue