Fixed Astral Spray in MP(?) (TEST THIS)

This commit is contained in:
Dominic authored and Cameron Ewell committed 2020-10-12 18:00:07 -04:00
1 parent ec2002d950
commit bda29ac960
1 file changed
+2 -1
+2 -1
View File
@@ -24,11 +24,12 @@ namespace CalamityMod.Projectiles.Typeless
public override bool PreAI()
{
if (projectile.owner == Main.myPlayer/* && Main.netMode != NetmodeID.MultiplayerClient*/)
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int x = (int)(projectile.Center.X / 16f);
int y = (int)(projectile.Center.Y / 16f);
WorldGenerationMethods.ConvertToAstral(x - 1, x + 1, y - 1, y + 1);
NetMessage.SendTileRange(-1, x - 1, y - 1, 2, 2);
}
if (projectile.timeLeft > 133)
{