From 1cabec4e0de834db991a0a88f34da7a2b33dd3b8 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Thu, 4 Feb 2016 18:58:44 -0500 Subject: [PATCH] Remove telepad sound volume altering as it caused glitchy noises --- .../crazypants/enderio/teleport/telepad/TileTelePad.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/crazypants/enderio/teleport/telepad/TileTelePad.java b/src/main/java/crazypants/enderio/teleport/telepad/TileTelePad.java index eb9c437c..daac8854 100644 --- a/src/main/java/crazypants/enderio/teleport/telepad/TileTelePad.java +++ b/src/main/java/crazypants/enderio/teleport/telepad/TileTelePad.java @@ -110,17 +110,14 @@ public class TileTelePad extends TileTravelAnchor implements IInternalPowerRecei } if(active()) { if(activeSound == null) { - activeSound = new MachineSound(activeRes, xCoord, yCoord, zCoord, 0.01f, 1); + activeSound = new MachineSound(activeRes, xCoord, yCoord, zCoord, 0.3f, 1); playSound(); } - activeSound.setVolume(MathHelper.clamp_float(spinSpeed, 0.1f, 1)); updateQueuedEntities(); } else if(!active() && activeSound != null) { - if(activeSound.getVolume() <= 0.1f) { + if(activeSound.getPitch() <= 0.5f) { activeSound.endPlaying(); activeSound = null; - } else { - activeSound.setVolume(MathHelper.clamp_float(spinSpeed, 0.1f, 1)); } } } else if(!worldObj.isRemote) {