Reduce decompile API blockers
Some checks failed
Build / build (push) Failing after 6m48s

This commit is contained in:
MrSphay
2026-05-04 13:33:41 +02:00
parent e41adca82b
commit 93c8d5efae
40 changed files with 472 additions and 1083 deletions

View File

@@ -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_();
}