Terraria.TileObjectData.LiquidPlace C# (CSharp) Method

LiquidPlace() public static method

public static LiquidPlace ( int type, Tile checkTile ) : bool
type int
checkTile Tile
return bool
        public static bool LiquidPlace(int type, Tile checkTile)
        {
            if (checkTile == null)
                return false;
            if ((int)checkTile.liquid > 0)
            {
                switch (checkTile.liquidType())
                {
                    case (byte)0:
                    case (byte)2:
                        if (Main.tileWaterDeath[type])
                            return false;
                        break;
                    case (byte)1:
                        if (Main.tileLavaDeath[type])
                            return false;
                        break;
                }
            }
            return true;
        }

Same methods

TileObjectData::LiquidPlace ( Tile checkTile ) : bool