mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +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
@@ -20,7 +20,7 @@ public class PacketFlamethrowerData implements IMessageHandler<FlamethrowerDataM
|
||||
EntityPlayer player = PacketHandler.getPlayer(context);
|
||||
|
||||
if (message.packetType == FlamethrowerPacket.UPDATE) {
|
||||
Mekanism.playerState.setFlamethrowerState(message.username, message.value);
|
||||
Mekanism.playerState.setFlamethrowerState(message.username, message.value, false);
|
||||
|
||||
// If we got this packet on the server, resend out to all clients in same dimension
|
||||
// TODO: Why is this a dimensional thing?!
|
||||
|
||||
Reference in new issue
Block a user