Remove telepad sound volume altering as it caused glitchy noises

This commit is contained in:
tterrag1098 committed 2016-02-04 18:58:44 -05:00
1 parent eb2c2bb283
commit 1cabec4e0d
1 file changed
+2 -5
@@ -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) {