🔥 The music

This commit is contained in:
Kino 2016-12-20 20:42:54 -05:00
parent 471acee721
commit 40c1b8f71e
2 changed files with 10 additions and 8 deletions

View file

@ -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,10 +46,12 @@ public class AetherMusicHandler
return;
}
else
{
event.setResultSound(null);
event.setResultSound(null);
return;
return;
}
}
}
}

View file

@ -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",