🔥 The music
This commit is contained in:
parent
471acee721
commit
40c1b8f71e
2 changed files with 10 additions and 8 deletions
|
@ -36,9 +36,9 @@ public class AetherMusicHandler
|
|||
{
|
||||
if (this.mc.thePlayer != null)
|
||||
{
|
||||
if (event.getSound().getSoundLocation() == this.mc.getAmbientMusicType().getMusicLocation().getSoundName() && this.mc.thePlayer.dimension == AetherConfig.getAetherDimensionID())
|
||||
if (this.mc.thePlayer.dimension == AetherConfig.getAetherDimensionID())
|
||||
{
|
||||
if (!this.isAetherSongPlaying(event.getSound()))
|
||||
if (event.getSound().getSoundLocation() == this.mc.getAmbientMusicType().getMusicLocation().getSoundName() && !this.isAetherSongPlaying(event.getSound()))
|
||||
{
|
||||
int songNum = this.random.nextInt(4);
|
||||
|
||||
|
@ -46,13 +46,15 @@ public class AetherMusicHandler
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
event.setResultSound(null);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (event.getSound().getCategory() == SoundCategory.RECORDS)
|
||||
{
|
||||
this.mc.getSoundHandler().stopSounds();
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
]
|
||||
},
|
||||
"achievement": {
|
||||
"category": "music",
|
||||
"category": "player",
|
||||
"sounds": [
|
||||
{
|
||||
"name": "aether_legacy:achievement/achievement_gen",
|
||||
|
@ -81,7 +81,7 @@
|
|||
]
|
||||
},
|
||||
"achievement_silver": {
|
||||
"category": "music",
|
||||
"category": "player",
|
||||
"sounds": [
|
||||
{
|
||||
"name": "aether_legacy:achievement/achievement_silver",
|
||||
|
@ -90,7 +90,7 @@
|
|||
]
|
||||
},
|
||||
"achievement_bronze": {
|
||||
"category": "music",
|
||||
"category": "player",
|
||||
"sounds": [
|
||||
{
|
||||
"name": "aether_legacy:achievement/achievement_bronze",
|
||||
|
|
Loading…
Reference in a new issue