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:
1 parent
a6b60977a1
commit
2bc15bbf57
2 files changed
-27
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user