mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +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
@@ -5,7 +5,6 @@ import ic2.api.item.ElectricItem;
|
||||
import ic2.api.item.IElectricItem;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
@@ -36,8 +35,6 @@ import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraftforge.energy.CapabilityEnergy;
|
||||
import net.minecraftforge.energy.IEnergyStorage;
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class TileEntityChargepad extends TileEntityNoisyBlock
|
||||
{
|
||||
@@ -244,9 +241,9 @@ public class TileEntityChargepad extends TileEntityNoisyBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
protected float getVolume()
|
||||
protected float getInitialVolume()
|
||||
{
|
||||
return 0.4F*super.getVolume();
|
||||
return 0.4F*super.getInitialVolume();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user