mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Improvements to fix for #15; smooth out sounds and detect ongoing attempts to muffle
The previous commit made the assumption that detection of sound being complete was fast enough that restarting a well-designed sound would be seamless -- this is not true. As such, had to change sounds to run for as long as machine is active on repeat with ongoing detection of muffling attempts. In addition, if sound was INITIALLY muffled, it would never have been unmuffled, so this also fixes that problem.
This commit is contained in:
1 parent
c78ae6dd1d
commit
f675590372
18 files changed
+332
-86
No files matched your search
@@ -101,6 +101,7 @@ import mekanism.client.render.transmitter.RenderMechanicalPipe;
|
||||
import mekanism.client.render.transmitter.RenderPressurizedTube;
|
||||
import mekanism.client.render.transmitter.RenderThermodynamicConductor;
|
||||
import mekanism.client.render.transmitter.RenderUniversalCable;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.common.CommonProxy;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.MekanismBlocks;
|
||||
@@ -1035,6 +1036,7 @@ public class ClientProxy extends CommonProxy
|
||||
MinecraftForge.EVENT_BUS.register(new ClientPlayerTracker());
|
||||
MinecraftForge.EVENT_BUS.register(new ClientTickHandler());
|
||||
MinecraftForge.EVENT_BUS.register(new RenderTickHandler());
|
||||
MinecraftForge.EVENT_BUS.register(SoundHandler.class);
|
||||
|
||||
new MekanismKeyHandler();
|
||||
|
||||
|
||||
Reference in new issue
Block a user