Terraria.Chest.NearOtherChests C# (CSharp) Method

NearOtherChests() public static method

public static NearOtherChests ( int x, int y ) : bool
x int
y int
return bool
        public static bool NearOtherChests(int x, int y)
        {
            for (int i = x - 25; i < x + 25; ++i)
            {
                for (int j = y - 8; j < y + 8; ++j)
                {
                    Tile tileSafely = Framing.GetTileSafely(i, j);
                    if (tileSafely.active() && tileSafely.type == 21)
                        return true;
                }
            }
            return false;
        }