From d99946df77c1352f4eff4bbc8f2fe519396abc5c Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 30 Apr 2020 23:54:04 -0400 Subject: [PATCH] Fixed daggers not shooting --- core/src/mindustry/entities/def/WeaponsComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/def/WeaponsComp.java b/core/src/mindustry/entities/def/WeaponsComp.java index b11086c611..ecf49c1348 100644 --- a/core/src/mindustry/entities/def/WeaponsComp.java +++ b/core/src/mindustry/entities/def/WeaponsComp.java @@ -97,7 +97,7 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{ float rotation = this.rotation - 90; //shoot if applicable - if(mount.reload <= 0.0001f && Angles.within(mount.rotation, mount.targetRotation, 1.5f)){ + if(mount.reload <= 0.0001f && Angles.within(weapon.rotate ? mount.rotation : this.rotation, mount.targetRotation, 1.5f)){ for(int i : (weapon.mirror && !weapon.alternate ? Mathf.signs : Mathf.one)){ i *= Mathf.sign(weapon.flipped) * (mount.weapon.mirror ? Mathf.sign(mount.side) : 1);