fixed Ultima not working in multiplayer

This commit is contained in:
termigator1359 committed 2020-08-06 18:41:10 -04:00
1 parent 0e518f6afe
commit f0a006ef17
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged
projectile.Kill();
return;
}
if (Main.netMode != NetmodeID.MultiplayerClient && Time % player.ActiveItem().useTime == 0)
if (projectile.owner != Main.myPlayer && Time % player.ActiveItem().useTime == 0)
{
int type = ProjectileID.WoodenArrowFriendly; // This doesn't really matter. It's overwritten anyway. But it is passed into the PickAmmo method.
float shotSpeed = player.ActiveItem().shootSpeed;