mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
MinecraftForge/FML@03fb1879d7 Fix obf error when right clicking a Empty Map. MinecraftForge/FML@6bb9b8b953 Clean up FMLEventChannel. Closes #367. MinecraftForge/FML@b7b3450dcd Update MCP mapping snapshot to latest crowdsourced names. MinecraftForge/FML@8c9e8b5270 Fix isRemote, this is integral to so many parts of the code, everyone knows it by this name, People should not change it.
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/audio/SoundManager.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/audio/SoundManager.java
|
|
@@ -35,6 +35,11 @@
|
|
import paulscode.sound.codecs.CodecJOrbis;
|
|
import paulscode.sound.libraries.LibraryLWJGLOpenAL;
|
|
|
|
+import net.minecraftforge.client.*;
|
|
+import net.minecraftforge.client.event.sound.*;
|
|
+import net.minecraftforge.common.MinecraftForge;
|
|
+import static net.minecraftforge.client.event.sound.SoundEvent.*;
|
|
+
|
|
@SideOnly(Side.CLIENT)
|
|
public class SoundManager
|
|
{
|
|
@@ -81,6 +86,7 @@
|
|
{
|
|
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
|
|
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
|
|
+ MinecraftForge.EVENT_BUS.post(new SoundSetupEvent(this));
|
|
}
|
|
catch (SoundSystemException soundsystemexception)
|
|
{
|
|
@@ -92,6 +98,7 @@
|
|
{
|
|
this.unloadSoundSystem();
|
|
this.loadSoundSystem();
|
|
+ MinecraftForge.EVENT_BUS.post(new SoundLoadEvent(this));
|
|
}
|
|
|
|
// JAVADOC METHOD $$ func_148608_i
|