generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -36,7 +36,7 @@ public class IntroMusicManager {
|
||||
if (this.isPlaying) {
|
||||
return;
|
||||
}
|
||||
SoundManager soundManager = Minecraft.m_91087_().m_91106_();
|
||||
SoundManager soundManager = Minecraft.getInstance().m_91106_();
|
||||
this.musicInstance = new FadingMusicInstance((SoundEvent)ModSounds.INTRO_MUSIC.get(), 0.25f, SoundSource.MASTER);
|
||||
soundManager.m_120367_((SoundInstance)this.musicInstance);
|
||||
ExplosionOverhaul.LOGGER.info("Started intro music with FadingMusicInstance");
|
||||
@@ -63,7 +63,7 @@ public class IntroMusicManager {
|
||||
public void stopBoomSound() {
|
||||
if (this.boomInstance != null) {
|
||||
try {
|
||||
SoundManager soundManager = Minecraft.m_91087_().m_91106_();
|
||||
SoundManager soundManager = Minecraft.getInstance().m_91106_();
|
||||
soundManager.m_120399_((SoundInstance)this.boomInstance);
|
||||
this.boomInstance = null;
|
||||
ExplosionOverhaul.LOGGER.info("Boom sound stopped.");
|
||||
@@ -76,7 +76,7 @@ public class IntroMusicManager {
|
||||
|
||||
public void stop() {
|
||||
ExplosionOverhaul.LOGGER.info("stop() called! Stack trace:", (Throwable)new Exception("Music stop trace"));
|
||||
SoundManager soundManager = Minecraft.m_91087_().m_91106_();
|
||||
SoundManager soundManager = Minecraft.getInstance().m_91106_();
|
||||
if (this.musicInstance != null) {
|
||||
soundManager.m_120399_((SoundInstance)this.musicInstance);
|
||||
this.musicInstance = null;
|
||||
@@ -112,7 +112,7 @@ public class IntroMusicManager {
|
||||
}
|
||||
|
||||
private void stopVanillaMusic() {
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc.m_91397_() != null) {
|
||||
mc.m_91397_().m_120186_();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user