🔥 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 (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);
|
int songNum = this.random.nextInt(4);
|
||||||
|
|
||||||
|
@ -46,13 +46,15 @@ public class AetherMusicHandler
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
event.setResultSound(null);
|
event.setResultSound(null);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (event.getSound().getCategory() == SoundCategory.RECORDS)
|
else if (event.getSound().getCategory() == SoundCategory.RECORDS)
|
||||||
{
|
{
|
||||||
this.mc.getSoundHandler().stopSounds();
|
this.mc.getSoundHandler().stopSounds();
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"achievement": {
|
"achievement": {
|
||||||
"category": "music",
|
"category": "player",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
{
|
{
|
||||||
"name": "aether_legacy:achievement/achievement_gen",
|
"name": "aether_legacy:achievement/achievement_gen",
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"achievement_silver": {
|
"achievement_silver": {
|
||||||
"category": "music",
|
"category": "player",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
{
|
{
|
||||||
"name": "aether_legacy:achievement/achievement_silver",
|
"name": "aether_legacy:achievement/achievement_silver",
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"achievement_bronze": {
|
"achievement_bronze": {
|
||||||
"category": "music",
|
"category": "player",
|
||||||
"sounds": [
|
"sounds": [
|
||||||
{
|
{
|
||||||
"name": "aether_legacy:achievement/achievement_bronze",
|
"name": "aether_legacy:achievement/achievement_bronze",
|
||||||
|
|
Loading…
Reference in a new issue