Fixed Astral Spray in MP(?) (TEST THIS)
This commit is contained in:
1 parent
ec2002d950
commit
bda29ac960
1 file changed
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user