Changed sound length so it's more "responsive" in game
This commit is contained in:
parent
cac04ed7e4
commit
787da0aeae
2 changed files with 21 additions and 21 deletions
|
@ -1,21 +1,21 @@
|
||||||
package assemblyline.client.sound;
|
package assemblyline.client.sound;
|
||||||
|
|
||||||
import net.minecraftforge.client.event.sound.SoundLoadEvent;
|
import net.minecraftforge.client.event.sound.SoundLoadEvent;
|
||||||
import net.minecraftforge.event.ForgeSubscribe;
|
import net.minecraftforge.event.ForgeSubscribe;
|
||||||
|
|
||||||
public class SoundManager
|
public class SoundManager
|
||||||
{
|
{
|
||||||
@ForgeSubscribe
|
@ForgeSubscribe
|
||||||
public void onSound(SoundLoadEvent event)
|
public void onSound(SoundLoadEvent event)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
event.manager.soundPoolSounds.addSound("assemblyline/conveyor.wav", getClass().getResource("conveyor.wav"));
|
event.manager.soundPoolSounds.addSound("assemblyline/conveyor.wav", getClass().getResource("conveyor.wav"));
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
System.err.println("Failed to register one or more sounds.");
|
System.err.println("Failed to register one or more sounds.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue