Yet another fix attempt

This commit is contained in:
DominicKarma committed 2020-10-14 21:22:25 -05:00
1 parent 47830c4be0
commit e170c529fe
2 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -28,8 +28,8 @@ namespace CalamityMod.Projectiles.Typeless
{
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)
{
+5 -4
View File
@@ -864,6 +864,7 @@ namespace CalamityMod.World
Main.tile[x, y].type = (ushort)ModContent.TileType<AstralMonolith>();
break;
case TileID.LeafBlock:
case TileID.Sunflower:
WorldGen.KillTile(x, y);
if (Main.netMode == NetmodeID.MultiplayerClient)
{
@@ -1002,17 +1003,17 @@ namespace CalamityMod.World
if (hanging)
{
ConvertToAstral(x, topMost - 1);
ConvertToAstral(x, topMost - 1, false);
break;
}
else
{
if (twoTall)
{
ConvertToAstral(x, topMost + 2);
ConvertToAstral(x, topMost + 2, false);
break;
}
ConvertToAstral(x, topMost + 1);
ConvertToAstral(x, topMost + 1, false);
break;
}
}
@@ -1025,7 +1026,7 @@ namespace CalamityMod.World
}
else if (Main.netMode == NetmodeID.Server)
{
NetMessage.SendTileSquare(-1, x, y, 1);
NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, x, y);
}
}
}