From 3ef9263cb9877cb4cca1e742f024437a73f8ccd4 Mon Sep 17 00:00:00 2001 From: parzivail Date: Sun, 30 Dec 2018 17:14:31 -0500 Subject: [PATCH] fix lightsaber sounds in multiplayer --- .../com/parzivail/swg/sound/MovingSoundLightsaberIdle.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/parzivail/swg/sound/MovingSoundLightsaberIdle.java b/src/main/java/com/parzivail/swg/sound/MovingSoundLightsaberIdle.java index 2bfd0a0cd..d4f3d0316 100644 --- a/src/main/java/com/parzivail/swg/sound/MovingSoundLightsaberIdle.java +++ b/src/main/java/com/parzivail/swg/sound/MovingSoundLightsaberIdle.java @@ -3,7 +3,6 @@ import com.parzivail.swg.Resources; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import net.minecraft.client.audio.ISound; import net.minecraft.client.audio.MovingSound; import net.minecraft.entity.player.EntityPlayer; @@ -16,7 +15,7 @@ public MovingSoundLightsaberIdle(EntityPlayer player) { super(Resources.location("swg.fx.saber.idle")); this.player = player; - attenuationType = ISound.AttenuationType.NONE; + attenuationType = AttenuationType.LINEAR; repeat = true; repeatDelay = 0; } @@ -25,5 +24,9 @@ public void update() { if (player.isDead) donePlaying = true; + + xPosF = (float)player.posX; + yPosF = (float)player.posY; + zPosF = (float)player.posZ; } }