mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Remove telepad sound volume altering as it caused glitchy noises
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user