Hopefully fixed scoria and planty mush

tried to fix scoria ore and planty mush constantly changing frames due to water
This commit is contained in:
Mortis3 committed 2023-07-31 17:25:47 -04:00
1 parent a6b60977a1
commit 2bc15bbf57
2 files changed
-27

No files matched your search

-15
View File
@@ -50,21 +50,6 @@ namespace CalamityMod.Tiles.Abyss
{
num = fail ? 1 : 3;
}
public override void NearbyEffects(int i, int j, bool closer)
{
if (!closer)
{
if ((Main.tile[i, j].LiquidAmount == 0 || Main.tile[i, j].LiquidType == LiquidID.Water) && j < Main.maxTilesY - 205)
{
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
Main.tile[i, j].LiquidAmount = byte.MaxValue;
WorldGen.SquareTileFrame(i, j);
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.sendWater(i, j);
}
}
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
-12
View File
@@ -54,18 +54,6 @@ namespace CalamityMod.Tiles.Ores
}
if (!closer)
{
if ((Main.tile[i, j].LiquidAmount == 0 || Main.tile[i, j].LiquidType == LiquidID.Water) && j < Main.maxTilesY - 205)
{
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
Main.tile[i, j].LiquidAmount = byte.MaxValue;
WorldGen.SquareTileFrame(i, j);
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.sendWater(i, j);
}
}
if (Main.gamePaused)
return;