Fixed Gamma Laser aiming problems in MP

This commit is contained in:
Dominic committed 2020-12-27 13:24:14 -06:00
1 parent 0610f0cf36
commit 7112d34b24
1 file changed
+9 -2
+9 -2
View File
@@ -59,8 +59,15 @@ namespace CalamityMod.Projectiles.Summon
if (!owner.active || owner.type != ModContent.ProjectileType<GammaHead>())
projectile.Kill();
projectile.velocity = projectile.AngleTo(Main.MouseWorld).ToRotationVector2();
projectile.rotation = projectile.velocity.ToRotation() - MathHelper.PiOver2;
if (Main.myPlayer == projectile.owner)
{
projectile.velocity = projectile.AngleTo(Main.MouseWorld).ToRotationVector2();
projectile.rotation = projectile.velocity.ToRotation() - MathHelper.PiOver2;
// Since the logic for this can only be run by one client, it must constantly be synced.
projectile.netUpdate = true;
projectile.netSpam = 0;
}
if (owner.active)
{