From dc27148c3089ac240201114aaf6cabc7fd540736 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Wed, 21 Dec 2022 00:22:21 +0100 Subject: [PATCH] Fixed wave lute eff --- .../interaction/weapon/untargeted/lute/WaveLuteAttack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/interaction/weapon/untargeted/lute/WaveLuteAttack.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/interaction/weapon/untargeted/lute/WaveLuteAttack.java index 73b74b91..9dbc79d6 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/interaction/weapon/untargeted/lute/WaveLuteAttack.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/interaction/weapon/untargeted/lute/WaveLuteAttack.java @@ -40,8 +40,8 @@ public class WaveLuteAttack implements LuteAttackHandler { // Display particle final Vector vec = MMOUtils.rotateFunc(new Vector(.5, 0, 0), loc); - projParticle.shootParticle(loc.clone().add(vec.multiply(Math.sin((double) ti / 2)))); - projParticle.shootParticle(loc.clone().add(vec.multiply(-1))); + projParticle.shootParticle(loc.clone().add(vec.clone().multiply(Math.sin((double) ti / 2)))); + projParticle.shootParticle(loc.clone().add(vec.clone().multiply(-1))); if (j == 0) sound.play(loc, 2, (float) (.5 + (double) ti / range));