Skip to content

Commit

Permalink
fix lightsaber sounds in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
parzivail committed Dec 30, 2018
1 parent b6d280b commit 3ef9263
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand All @@ -25,5 +24,9 @@ public void update()
{
if (player.isDead)
donePlaying = true;

xPosF = (float)player.posX;
yPosF = (float)player.posY;
zPosF = (float)player.posZ;
}
}

0 comments on commit 3ef9263

Please sign in to comment.