Terraria.WaterfallManager.CheckForWaterfall C# (CSharp) Method

CheckForWaterfall() public method

public CheckForWaterfall ( int i, int j ) : bool
i int
j int
return bool
        public bool CheckForWaterfall(int i, int j)
        {
            for (int index = 0; index < this.currentMax; ++index)
            {
                if (this.waterfalls[index].x == i && this.waterfalls[index].y == j)
                    return true;
            }
            return false;
        }